title: Swift Bound value in a conditional binding must be of Optional type
body: <pre><code>if let ip = indexPath {
              var data: NSManagedObject = myList[ip.row] as NSManagedObject
              cell.textLabel?.text = data.valueForKeyPath("item") as String
  
           }
  </code></pre>
  
  <p>error :
  "Bound value in a conditional binding must be of Optional type"</p>
  
  <p>I'm using  xcode 6.1.1, help please.﻿</p>
  
  <p>I am following this tutorial, [<a href="http://www.youtube.com/watch?v=4ymz6i07DRM]" rel="nofollow">http://www.youtube.com/watch?v=4ymz6i07DRM]</a></p>