Swift : Convert (cast) Int to String ?

Problem :

How to convert (cast) Int to String in Swift programming language ?

Solution :

Just cast the Int variable with String() functon. For example :

 let x : Int = 100
 var str = String(x)

By Adam Ng

IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.