Calling function in Parse Cloud Code
<p>I am working with cloud code for the first time and am trying to call the following function:</p>

<pre><code>       let friendRequest: PFObject = self.friendRequestsToCurrentUser[sender.tag] as PFObject
      let fromUser: PFUser = friendRequest[FriendRequestKeyFrom] as PFUser
      //call the cloud code function that adds the current user to the user who sent the request and pass in the friendRequest id as a parameter
        PFCloud.callFunctionInBackground("addFriendToFriendsRelation", withParameters: ["friendRequest": friendRequest.objectId]) { (object:AnyObject!, error: NSError!) -&gt; Void in
        let friendsRelation: PFRelation = PFUser.currentUser()!.relationForKey("friends")
         friendsRelation.addObject(fromUser)
             self.currentUser.saveInBackgroundWithBlock({ (succeeded: Bool, error: NSError!) -&gt; Void in
                 if succeeded {
                 } else {
            }
        })
    }
}
</code></pre>

<p>After implementing the function I was required to add "!" to the objectId in the parameter to unwrap it. 
However, doing this leaves me with the error: </p>

<blockquote>
  <p>Cannot convert value of type '(AnyObject!, NSError!) -> Void' to
  expected argument type 'PFIdResultsBlock?'</p>
</blockquote>

<p>What must I change in order to call this function?</p>