NativeBoost: type marshalling