public static < T > List < T > toList ( Object array , Class < T > clazz ) { List < T > list = new ArrayList <> ( ) ; for ( Object o : toObjectArray ( array ) ) { list . add ( Reflection . toType ( o , clazz ) ) ; } return list ; }
Convert the given array to list