Swift 5
let myString = "12" let myInt = Int(myString)!
let myString = "12"
let myInt = Int(myString)!
Ensure, that myString is really an integer though, because this conversion is not handled at all!