title: Passing object with prepareForSegue Swift
body: <p>I am trying to pass an object to another scene with <strong>prepareForSegue()</strong></p>
  
  <pre><code>override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
          // Get the new view controller using [segue destinationViewController].
          var nextScene =  segue.destinationViewController as! VehicleDetailsTableViewController
  
          // Pass the selected object to the new view controller.
          if let indexPath = self.tableView.indexPathForSelectedRow() {
              let selectedVehicle = vehicles[indexPath.row]
              nextScene.currentVehicle = selectedVehicle
          }
      }
  </code></pre>
  
  <p>And I have currentVehicle object to catch these object. But, when I try to run, it brokes and get error about downcasting.</p>
  
  <p><strong>Error EDIT</strong></p>
  
  <blockquote>
    <p>Could not cast value of type 'XXX.DisplayViewController'
    (0x1082dcd80) to 'XXX.VehicleDetailsTableViewController'
    (0x1082dc9a0). (lldb)</p>
  </blockquote>