Question:
I’m trying to useOrderedDictionary
from Collections and I’m getting the following error when trying to convert a Dictionary to OrderedDictionary.Cannot convert value of type '[String : Double]' to specified type 'OrderedDictionary<Key, Value>'
Answer:
The compiler won’t let you cast it directly. Instead, pass values to the initializer.If you have better answer, please add a comment about this, thank you!