downCastSet

inline fun <E> Any?.downCastSet(): Set<E>?

Downcast any objects to a specified typed set safely.

Return

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