Converts a map of unknown typing to a map of a given key-value type. This proves useful since generics are lost when converting ObjC/Swift to Kotlin
The map of all the elements in the given map that match the desired typing