title: how to convert Int32 value to CGFloat in swift?
body: <p>Here my code.  I am passing two values into <code>CGRectMake(..)</code> and getting and error.</p>
  
  <pre><code>let width = CMVideoFormatDescriptionGetDimensions(device.activeFormat.formatDescription as CMVideoFormatDescriptionRef!).width
  // return Int32 value
  
  let height = CMVideoFormatDescriptionGetDimensions(device.activeFormat.formatDescription as CMVideoFormatDescriptionRef!).height
  // return Int32 value
  
  myLayer?.frame = CGRectMake(0, 0, width, height)
  // returns error: '`Int32`' not convertible to `CGFloat`
  </code></pre>
  
  <p>How can I convert <code>Int32</code> to <code>CGFloat</code> to not return an error?</p>