title: parse.com in Swift - is it possible to cast retrieved PFObject as subclass?
body: <p>I've created a subclass of PFObject, basically following instructions on <a href="https://parse.com/docs/ios/guide#objects-subclasses" rel="noreferrer">parse.com docs</a>, and pinned the object locally. The parse docs don't seem to go into retrieving a PFObject subclass, and I'm wondering - is it possible to cast the retrieved object as the PFObject subclass. If so, how?</p>
  
  <p>(I understand if it's not possible, it could be necessary to re-instantiate the subclass, based on the retrieved properties of the PFObject.) </p>
  
  <pre><code>   let query = PFQuery(className:Armor.parseClassName())
      query.fromLocalDatastore()
      query.findObjectsInBackgroundWithBlock({
          (objects:[AnyObject]?, error: NSError?) in
          if let error = error {
              // There was an error
          } else {
              if let objects = objects as? [PFObject] {
                  for object in objects {
                      //This println is outputting to the console:
                      println("PFObject object retrieved")
                      if let object = object as? Armor {
                            //This println is NOT outputting to the console:
                            println("PFObject object cast as Armor")
                      }
                  }
              }
          }
      })
  </code></pre>