downCastList

inline fun <E> Any?.downCastList(): List<E>?

Downcast any objects to a specified typed list safely.

Return

A typed list if the object inherits the specified list type, or null otherwise.