Add support for other primitive types to ReflectionHelper