title: 'init is unavailable: use 'withMemoryRebound(to:capacity:_)' to temporarily view memory as another layout-compatible type
body: <p>since i converted my Code to Swift 3 the error occurs.</p>
  
  <pre><code>'init is unavailable: use 'withMemoryRebound(to:capacity:_)' to temporarily view memory as another layout-compatible type.
  </code></pre>
  
  <p>Here is my Code:</p>
  
  <pre><code>func parseHRMData(data : NSData!)
  {
      var flags : UInt8
      var count : Int = 1
      var zw = [UInt8](count: 2, repeatedValue: 0)
  
      flags = bytes[0]
      /*----------------FLAGS----------------*/
          //Heart Rate Value Format Bit
          if([flags &amp; 0x01] == [0 &amp; 0x01])
          {
              //Data Format is set to UINT8
              //convert UINT8 to UINT16
              zw[0] = bytes[count]
              zw[1] = 0
              bpm = UnsafePointer&lt;UInt16&gt;(zw).memory
  
              print("HRMLatitude.parseData Puls(UINT8): \(bpm)BPM")
  
              //count field index
              count = count + 1
          }
  </code></pre>
  
  <p>How can I fix this error?</p>
  
  <p>Thanks in advance!</p>