/** Convert String value to instance. * @param type classname or type (eg int) * @param value The value as a string. * @return The value as an Object. */ public static Object valueOf(String type, String value) { return valueOf(fromName(type),value); }
if (pClass != null) return TypeUtil.valueOf(pClass, value.toString());