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 .