javavariant is a free and open-source Java Variant that supports arbitrary string / string array input and translates them into a series of Java type outputs.
javavariant was designed to convert Java Strings into other Native datatypes using a single nexus.
Detailed instructions on how to install and use the javavariant utility on your Mac are available HERE.
javavariant is a cross-platform utility capable of running on any operating system that comes with Java support (e.g. Mac OS X, Windows, Linux).