title: Accessing CKRecord values in Swift 3
body: <p>I'm trying to access a certain field in my CKRecord, which I know exists, but when I do so, I get "unexpectedly found nil".</p>
  
  <p>Here's the syntax:</p>
  
  <pre><code>var prevFact = birdFacts[0].value(forKey: "sortingDate") as! Int
  </code></pre>
  
  <p>What am I doing wrong?</p>