toList

fun <T : Any> toList(clazz: Class<T>): List<T>

Parse rows into a collection whose element type is the specified class.