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