I\'m migrating a project from Swift 2.2 to Swift 3, and I\'m trying to get rid of old Cocoa data types when possible.
My problem is
Another solution that works in Swift 3 is to cast the Decimal to NSNumber and create the Double from that.
Decimal
NSNumber
Double
let someDouble = Double(someDecimal as NSNumber)
As of Swift 4.2 you need:
let someDouble = Double(truncating: someDecimal as NSNumber)