I have already upgraded to Xcode 8 and now I need to convert the code from Swift 2 to Swift 3.
Previously, when I wanted to convert NSDictionaryto Dictionary, I just wrote the following:
let post_paramsValue = post_params as? Dictionary<String,AnyObject?>
where post_paramsis it NSDictionary.
But now with Swift 3, I get this error:
NSDictionary is not convertible to Dictionary
What for? What changed?
Edit 1
I also tried the following:
let post_paramsValue = post_params as Dictionary<String,Any>
But this gives this error:

Edit 2
I also tried the following:
let post_paramsValue = post_params as Dictionary<String,Any>
Where I declare NSDictionaryinstead NSDictionary!, but this does not work; I got this error:

Edit 3
I also tried the following:
let post_paramsValue = post_params as Dictionary<String,Any>!
But I got this error:
