I want to convert swift dictionary [String : Any] to KotlinMutableDictionary<NSString, NSString>. It doesn't allow to init with my swift dictionary.
let kotlinDic = MykotlinClass.init(pages: <#T##KotlinMutableDictionary<NSString, NSString>#>)
// The class definitation
let kotlinDic = MykotlinClass.init(pages: editableFiedlDic as! KotlinMutableDictionary<NSString, NSString>)
// This is how I initialized
You cannot cast them directly (see note), but you have to do something like that:
So in your case you should do