asListOf

abstract fun <T : Any> asListOf(type: KClass<T>): List<T>

Gets this value as a composite List of values of a given type.

Throws an exception if this value doesn't represent a List of T.