public final static Object toPrimitiveArray ( final Object array ) { if ( ! array . getClass ( ) . isArray ( ) ) { return array ; } final Class < ? > clazz = OBJ_TO_PRIMITIVE . get ( array . getClass ( ) . getComponentType ( ) ) ; return setArray ( clazz , array ) ; }
Convert an array of Objects to primitives if possible . Return input otherwise