How to build in a degree in the Swift language?

Please help can't find method, which builds in a degree variable with the type Int.
Pay special attention that the type Int, not Double (pow does not take Int)

The only crutch found
var a = 2
var i = pow(Double(a),2)
BUT I'm interested in without these crutches.
June 26th 19 at 14:23
1 answer
June 26th 19 at 14:25
It's not a crutch, and normal casts, which is characteristic for strongly typed languages. Everything is fine with your code

Find more questions by tags Swift