swift parse int from string code example Example: parse int in swift let myString1 = "556" let myInt1 = Int(myString1)