title: How can I read a property list from data in Swift 3
body: <p>I'm trying to read a <code>property list</code> from <code>Data</code> in Swift 3 but I can't achieve that.</p>
  
  <p>I'm tried something like this:</p>
  
  <pre><code>let datasourceDictionary = try! PropertyListSerialization.propertyList(from: data!, options: [PropertyListSerialization.ReadOptions], format: nil) as! Dictionary
  </code></pre>
  
  <p>and a I got this error:</p>
  
  <blockquote>
    <p>Cannot convert value of type 'PropertyListSerialization.ReadOptions.Type' (aka 'PropertyListSerialization.MutabilityOptions.Type') to expected element type 'PropertyListSerialization.MutabilityOptions'</p>
  </blockquote>
  
  <p>Then I tried something like this like I used to do on Swift 1.2:</p>
  
  <pre><code>let datasourceDictionary = try! PropertyListSerialization.propertyList(from: data!, options: [PropertyListSerialization.MutabilityOptions.immutable], format: nil) as! Dictionary
  </code></pre>
  
  <p>And I got this error:</p>
  
  <blockquote>
    <p>'immutable' is unavailable: use [] to construct an empty option set</p>
  </blockquote>
  
  <p>Then I tried this:</p>
  
  <pre><code>let datasourceDictionary = try! PropertyListSerialization.propertyList(from: data!, options: [], format: nil) as! Dictionary
  </code></pre>
  
  <p>and I got this error:</p>
  
  <blockquote>
    <p>'[Any]' is not convertible to 'PropertyListSerialization.ReadOptions' (aka 'PropertyListSerialization.MutabilityOptions')</p>
  </blockquote>
  
  <p>How can I read the <code>property list</code> file from `Data in Swift 3 or what is the way to do that?</p>