How to convert Int bit pattern to Float in Swift?
<p>I'm looking for the equivalent of Java's <a href="https://docs.oracle.com/javase/7/docs/api/java/lang/Float.html#intBitsToFloat(int)" rel="nofollow"><code>Float.intBitsToFloat(int)</code></a> in Swift.</p>

<p>I've tried:</p>

<pre><code>let myInt: UInt32 = ...
let myFloat = Float(_bits: myInt)
</code></pre>

<p>but that gives me the compiler error, "cannot convert value of type 'UInt32' to expected argument type 'FPIEEE32'". </p>

<p>Is there an easy way to do this that I am missing?</p>