public static Object convertValue ( Object value , Class toType ) { return convertValue ( value , toType , false ) ; }
Returns the value converted numerically to the given class type This method also detects when arrays are being converted and converts the components of one array to the type of the other .