Swift : Convert (cast) Int to int32 or Uint32
Problem :
How to convert (cast) Int to Int32 in Swift programming language ?
Solution :
Use the Int32() function to convert or cast the Int variable. For example :
let x : Int = 100
var x32 = Int32(x)
and
var xu32 = UInt32(x)
See also : Swift : Convert (cast) Int to String ?
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.
Advertisement
Tutorials
+29.8k Golang : How to get HTTP request header information?
+20.1k Golang : How to get own program name during runtime ?
+15.6k Golang : Get checkbox or extract multipart form data value example
+18.5k Golang : Send email with attachment
+12.6k Android Studio : Highlight ImageButton when pressed on example
+13.9k Golang : concatenate(combine) strings
+11.5k Golang : Display a text file line by line with line number example
+10.2k Golang : How to check if a website is served via HTTPS
+62.6k Golang : Convert HTTP Response body to string
+10k Golang : Get login name from environment and prompt for password
+13.6k Golang : Activate web camera and broadcast out base64 encoded images
+17.6k Golang : Parse date string and convert to dd-mm-yyyy format