title: Pointer field toUser needs a pointer value Parse.com
body: <p>I have a Parse.com class called Messages, where I have 3 columns:</p>
  
  <pre><code>- fromUser - Pointer&lt;_User&gt;
  - toUser - Pointer&lt;_User&gt;
  - image - File
  </code></pre>
  
  <p>In my UITableView I'm trying to retrieve all objects in the Messages-class where toUser is equal to PFUser currentUser. I'm getting this error when I do the query:</p>
  
  <pre><code>UserInfo=0x1702e3580 {code=102, temporary=0, error=pointer field toUser needs a pointer value, originalError=Error Domain=NSURLErrorDomain Code=-1011 "The operation couldn’t be completed. (NSURLErrorDomain error -1011.)"} {
      code = 102;
      error = "pointer field toUser needs a pointer value";
      originalError = "Error Domain=NSURLErrorDomain Code=-1011 \"The operation couldn\U2019t be completed. (NSURLErrorDomain error -1011.)\"";
      temporary = 0;
  }
  </code></pre>
  
  <p>Here's how I do the query:</p>
  
  <pre><code>- (void)retriveMessages {
      PFQuery *query = [PFQuery queryWithClassName:@"Messages"];
      [query whereKey:@"toUser" equalTo:[[PFUser currentUser] objectId]];
      [query orderByDescending:@"createdAt"];
      query.limit = 1000;
      [query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
          if (error) {
              NSLog(@"Error: %@ %@", error, error.userInfo);
          } else {
              // Found messages!
              self.messages = objects;
              [self.tableView reloadData];
              NSLog(@"%@", objects);
          }
      }];
  }
  </code></pre>