public static Object castToType ( Object object , Class type ) throws Throwable { return DefaultTypeTransformation . castToType ( object , type ) ; }
Provides a hook for type casting of the given object to the required type