return n.doubleValue();\r
} else if (targetType == float.class || targetType == Float.class) {\r
return n.floatValue();\r
+ } else if (targetType == BigDecimal.class) {\r
+ return new BigDecimal(n.doubleValue());\r
+ } else if (targetType == java.util.Date.class) {\r
+ return new java.util.Date(n.longValue());\r
+ } else if (targetType == java.sql.Date.class) {\r
+ return new java.sql.Date(n.longValue());\r
+ } else if (targetType == java.sql.Time.class) {\r
+ return new java.sql.Time(n.longValue());\r
+ } else if (targetType == java.sql.Timestamp.class) {\r
+ return new java.sql.Timestamp(n.longValue());\r
}\r
}\r
\r