public override void OnWrite(ByteObjectWriter writer, object value, Type defaultItemType) { writer.Bool((bool)value); }