removeValuesUnlessInstanceOf

Removes any values in the map that are not type V and returns a MutableMap<K, V> with the remaining entries.