title: How do I add a NSNumber fetched object from Parse to a NSMutable array?
body: <p>I have a normal Parse query and inside the query i have this piece of code that basically fetched all objects found:</p>
  
  <pre><code>[query findObjectsInBackgroundWithBlock:^(NSArray *objects, NSError *error) {
          if (!error) {
              // The find succeeded.
              NSLog(@"Successfully retrieved %lu scores.", (unsigned long)objects.count);
              // Do something with the found objects
  
  
              for (NSObject *object in objects){
  
                  NSLog(@"vacants %d ", [[object valueForKey:@"Vacants"]intValue]);
                  [eventnameArray addObject:[object valueForKey:@"EventName"]];
                  [userArray addObject:[object valueForKey:@"Username"]];
                  [sportArray addObject:[object valueForKey:@"Sportname"]];
                  [hourArray addObject:[object valueForKey:@"Hour"]];
                  [dateArray addObject:[object valueForKey:@"Date"]];
                  [placeArray addObject:[object valueForKey:@"Place"]];
                  [vacantsArray addObject: [NSNumber numberWithInt:[object valueForKey:@"Vacants"]]];
                  [cityArray addObject:[object valueForKey:@"City"]];
  
              }
  
  
  
  
          } else {
              // Log details of the failure
              NSLog(@"Error: %@ %@", error, [error userInfo]);
          }
  
          [self.tableView reloadData];
      }];
  </code></pre>
  
  <p>For Vacantsarray the fetched value from the Parse Cloud in a number. I cannot seem to be able to add this numeric value to the NSMutablearray</p>
  
  <p>It throws me this error:</p>
  
  <pre><code>-[__NSCFNumber isEqualToString:]: unrecognized selector sent to instance 
  </code></pre>
  
  <p>EDIT : </p>
  
  <p>Doing this:</p>
  
  <pre><code>[vacantsArray addObject: [NSString stringWithFormat:[object valueForKey:@"Vacants"]]]; 
  </code></pre>
  
  <p>throws me this error:</p>
  
  <pre><code>-[__NSCFNumber length]: unrecognized selector sent to instance
  </code></pre>