Converting Int64 to Float in Swift 2.2
<p>Please let me know what I am doing wrong in below statements, its not compiling (where I have casted the Int64 to Float)</p>

<pre><code> func connection(connection: NSURLConnection, didReceiveResponse response: NSURLResponse) {
    NSLog("data came")
    var expectedDownloadSize:Float = (Float) response.expectedContentLength

}
</code></pre>