title: NSData to Data swift 3
body: <pre><code>var dataFile: NSData = NSMutableData.init(data: wav.subdataWithRange(NSRange.init(location: currentByte, length: wavDataSize)))
  </code></pre>
  
  <p>How to me convert this code to using <code>Data</code> with Swift 3? Or how to parse<code>NSRange</code> to <code>Range</code></p>