Converting double to integer in Swift

let pi = 3.1415926535
let intValue = Int(pi)
//intValue is 3