public static Object asType(Class<?> type, String string) { if (isBoolean(type)) { return Boolean.parseBoolean(string); } else if (isInteger(type)) { return Integer.parseInt(string); } else if (isLong(type)) {
public static Object asType(Class<?> type, String string) { if (isBoolean(type)) { return Boolean.parseBoolean(string); } else if (isInteger(type)) { return Integer.parseInt(string); } else if (isLong(type)) {