Cannot convert value of type 'NSMutableDictionary!' to type '[AnyHashable : Any]' in coercion??

0 votes
48 views
asked Jun 1 in Swift by anonymous
HI all

  Cannot convert value of type 'NSMutableDictionary!' to type '[AnyHashable : Any]' in coercion??

1 Answer

0 votes
answered Jun 1 by admin (8,115 points)

Hi 

   I also faced the same problem Solution is convert the variable to NSDictinary and [AnyHashable : Any]' 

Example 

 var param = variable as NSDictionary) as! [AnyHashable : Any]

...