turn a number into a string and format swift code example Example: ios swift convert int to string let x : Int = 42 var myString = String(x)