It should be easy but I can only find the reverse conversion. How can I convert Int32 to Int in Swift? Unless the problem is different?
I have a value stored in Core
Swift 4.0 producing "Cannot invoke initializer for type 'Int' with an argument list of type '(() -> Int32)"
let number1: Int32 = 10 let number2 = Int(number1)
Simply do this
Int("\(Int32value)")
I'm unable to understand why swift is making things difficult.