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
Use a function style conversion (found in section labeled "Integer and Floating-Point Conversion" from "The Swift Programming Language."[iTunes link])
1> Int(3.4) $R1: Int = 3