I\'m trying to do this, but doesn\'t work:
public static Class loadIt(String name) throws Throwable { return Class.forName(name); } assert foo.loadIt(\"int
In this case, the best you can hope for is to create a map of primitives to their Autoboxed equivalent and return a class of that type.