I want to convert a Float to an Int in Swift. Basic casting like this does not work because these types are not primitives, unlike float
Float
Int
float
var floatValue = 10.23 var intValue = Int(floatValue)
This is enough to convert from float to Int