Casting CGFloat to Float in Swift January 7, 2023 by Tarik You can use the Float() initializer: let cgFloat: CGFloat = 3.14159 let someFloat = Float(cgFloat)