src/main/java/ognl/OgnlOps.java
public static Object convertValue(Object value, Class toType)
    {
        return convertValue(value, toType, false);
    }
public static Object convertValue(Object value, Class toType)
    {
        return convertValue(value, toType, false);
    }
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.

@param value
an object to be converted to the given type
@param toType
class type to be converted to
@return converted value of the type given, or value if the value cannot be converted to the
given type.
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 .