In CoreData I have defined an ordered to-many relationship. This relationship is defined in Swift like this:
@NSManaged var types : NSMutableArray <
The following is a working piece of code from one of my projects that might help?
if let rawArray = rawData as? NSArray, let castArray = rawArray as? Array< Dictionary< String, AnyObject > > { // etc... }
It works, although I'm not sure it would be considered optimal.