convert an Int to Double Swift stackoverflow code example Example: xcode convert int to double Double(myInt)