downCastMap

inline fun <K, V> Any?.downCastMap(): Map<K, V>?

Downcast any objects to a specified typed map safely.

Return

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