What would be the shortest/cleanest way to convert an Optional Number to an Optional Int in Swift?
Is there a better way than this? (see below)
let orderNumberInt : Int?
if event.orderNum != nil {
orderNumberInt = Int(event.orderNum!)
} else {
orderNumberInt = nil
}