title: Parse Error invalid type for key fromUser, expected map, but got *User
body: <p>I have a parse class called User, another one called activity. An activity has a fromUser field that expects an Object. 
  When i make a new activity, when saving i get the error </p>
  
  <blockquote>
    <p>invalid type for key fromUser, expected map, but got *User</p>
  </blockquote>
  
  <p>The code im using is:</p>
  
  <pre><code>Activity *activity = [Activity object];
  User *loggedInUser = [SessionService instance].loggedInUser;
  [activity setFromUser:loggedInUser];
  </code></pre>
  
  <p>The other solutions on stackoverflow use pointers but i want to use an object so i want to get this working or atleast understand why it doesnt like my user object.
  At first i thought it was my user object so i also tried:</p>
  
  <pre><code>PFObject *userObject = [PFObject objectWithClassName:@"User"];
  userObject[@"name"] = loggedInUser.name;
  [activity setObject:userObject forKey:@"fromUser"];
  </code></pre>
  
  <p>but i still get the same error so i know its not the my mapping of my user object to a class.</p>