title: How to convert an PFFile to an UIImage with swift?
body: <p>How do i convert an PFFile to an UIImage with swift?</p>
  
  <p>In this code, the app is getting the file from parse and now i want it to show on a UIImageView, But i get an error...</p>
  
  <p>Here is my code...</p>
  
  <pre><code> var ImageArray:UIImage = [UIImage]()
      var textArray:String = [String]()
  
       var query = PFQuery(className:"ClassName")
  
              query.findObjectsInBackgroundWithBlock {
                  (objects: [AnyObject]?, error: NSError?) -&gt; Void in
  
                  if error == nil {
  
  
                      if let objects = objects as? [PFObject] {
                          for object in objects {
       //this works fine                       
  self.textArray.append(object.valueForKey("Image")! as! String)
  
  
  
      //this does not work...
                              self.ImageArray.append(object.valueForKey("Image")! as! PFFile)
      //I get an error that says PFFile is not convertible to UIImage. How do i convert it?
  
  
  
  
  
  
                          }
                      }
                  } else {
                      // Log details of the failure
                      println("Error: \(error!) \(error!.userInfo!)")
                  }
  </code></pre>