public static Object from(Object value, Class<?> clazz) {
		if (value == null) {
			return value;
		}
		if(value.getClass().getSuperclass().equals(Number.class)) {
			Number number = (Number)value;
			if(clazz.equals(Integer.class)) {
				value = number.intValue();
			} else if(clazz.equals(Long.class)) {
				value = number.longValue();
			}
		}
		
		if(clazz.equals(Boolean.class)) {
			return (Integer.parseInt(value.toString()) == 1);
		} else if(clazz.equals(Date.class)) {
			return StringUtil.toDate(value.toString());
		}
		return value;		
	}