private <T> List<T> asList(Object value, Class<T> ofClass) {
        @SuppressWarnings("unchecked")
        T[] values = (T[]) value;
        return Arrays.asList(values);
    }
private < T > List < T > asList ( Object value , Class < T > ofClass ) { @ SuppressWarnings ( "unchecked" ) T [ ] values = ( T [ ] ) value ; return Arrays . asList ( values ) ; }
Returns value as a T List.

@param value array to convert.

@return value as a T List.