// Path: naive-core/src/main/java/com/goribun/naive/core/constants/Const.java
// public class Const {
// 
//     //扫描rpc服务的包路径配置key
//     public static final String SCAN_PACKAGE_KEY_ = "scanPackage";
// 
//     public static final String IS_TRACE_STACK = "isTraceStack";
// 
//     //日期格式
//     public static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss SSS";
// 
// 
// }


import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import com.goribun.naive.core.constants.Const;
        if (object == null) {
            return null;
        }

        if (clazz.equals(byte.class) || clazz.equals(Byte.class)) {
            return ((Integer) object).byteValue();
        }

        if (clazz.equals(short.class) || clazz.equals(Short.class)) {
            return ((Integer) object).shortValue();
        }

        if (clazz.equals(long.class) || clazz.equals(Long.class)) {
            return long.class.cast(object);
        }

        if (clazz.equals(float.class) || clazz.equals(Float.class)) {
            return ((BigDecimal) object).floatValue();
        }

        if (clazz.equals(double.class) || clazz.equals(Double.class)) {
            return ((BigDecimal) object).doubleValue();
        }

        if (clazz.equals(char.class) || clazz.equals(Character.class)) {
            return String.class.cast(object).charAt(0);
        }

        //日期类型
        if (clazz.equals(Date.class)) {
// Path: naive-core/src/main/java/com/goribun/naive/core/constants/Const.java
// public class Const {
// 
//     //扫描rpc服务的包路径配置key
//     public static final String SCAN_PACKAGE_KEY_ = "scanPackage";
// 
//     public static final String IS_TRACE_STACK = "isTraceStack";
// 
//     //日期格式
//     public static final String DEFAULT_DATE_FORMAT = "yyyy-MM-dd HH:mm:ss SSS";
// 
// 
// }


// Path: naive-core/src/main/java/com/goribun/naive/core/utils/ClassUtil.java
import java.math.BigDecimal;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import com.goribun.naive.core.constants.Const;

        if (object == null) {
            return null;
        }

        if (clazz.equals(byte.class) || clazz.equals(Byte.class)) {
            return ((Integer) object).byteValue();
        }

        if (clazz.equals(short.class) || clazz.equals(Short.class)) {
            return ((Integer) object).shortValue();
        }

        if (clazz.equals(long.class) || clazz.equals(Long.class)) {
            return long.class.cast(object);
        }

        if (clazz.equals(float.class) || clazz.equals(Float.class)) {
            return ((BigDecimal) object).floatValue();
        }

        if (clazz.equals(double.class) || clazz.equals(Double.class)) {
            return ((BigDecimal) object).doubleValue();
        }

        if (clazz.equals(char.class) || clazz.equals(Character.class)) {
            return String.class.cast(object).charAt(0);
        }

        //日期类型
        if (clazz.equals(Date.class)) {
            SimpleDateFormat dateFormat = new SimpleDateFormat(Const.DEFAULT_DATE_FORMAT);