downCastArray

inline fun <T> Any?.downCastArray(): Array<T>?

Downcast any objects to a specified typed array safely.

Return

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