typedList

inline fun <T : Any> List<*>.typedList(): List<T>

Converts a list of unknown typing to a list of a given type. This proves useful since generics are lost when converting ObjC/Swift to Kotlin

Return

The list of all the elements in the given list that match the desired typing