How about Convert(byte array (/ Flatbuffers posting value), targetType)? In other words,
Byte array -> Native Type -> Target Type
My original suggestion was to avoid using strings as intermediaries for conversion. Though, I can see why that’d cause NC2 permutations if we support N types. Having said that, if you can think of a good way to achieve that, it’d be great, because conversion to string and then parsing it back is expensive.
Note that before we weren’t doing that before, because we would just return back the bytes that had been given to us; so this would have a negative impact on the performance.