title: Having issues when trying to convert string input to an integer value that can be set as an entities int32 attribute
body: <p>I am still fairly new to Objective-C and iOS development
  . I am able to make an app run fine with core data when all the attributes are strings only. My problem occurs when i have an entity (i made a test one to show as an example) which has an attribute that is set to be of type integer 16(though i have tried setting both integer 16 and integer 64 and get the exact same errors) but i cannot seem to understand how i am supposed to convert the string input from a user to a format which will be accepted as a value to be set. I keep getting the same error messages (implicit conversion of NSInteger to IDNullable is disallowed in ARC) &amp; (incompatible integer to pointer conversion sending NSInteger(AKA "long" to parameter of type ID Nullable)
  ex 1:
     NSManagedObjectContext *context = [self managedObjectContext];
      NSManagedObject *newEntity = [NSEntityDescription insertNewObjectForEntityForName:@"TestEntity" inManagedObjectContext:context];</p>
  
  <pre><code>int valueOne = [self.valueOneIn.text intValue]; 
  
  [newEntity setValue:valueOne forKey:@"value1"]; //!!2 errors listed above
  </code></pre>
  
  <p>ex 2 (above ex edited):</p>
  
  <pre><code>NSInteger valueOne = [self.valueOneIn.text intValue];
  
  [newEntity setValue:valueOne forKey:@"value1"]; //!!2 errors listed above
  </code></pre>
  
  <p>ex 3 (ex1, just edited):</p>
  
  <pre><code>NSInteger *valueOne = [self.valueOneIn.text intValue]; //!!error
  
  [newEntity setValue:valueOne forKey:@"value1"]; //!!2 errors listed above
  </code></pre>
  
  <p>I have attached two photos showing simple examples of the errors that i am getting. I have spent the past couple days looking up videos, online courses and even reading some possible solutions on stack overflow, but none seem to remedy the situation (my examples above were made in my attempts to use the potential solutions i had found but, most cover using core data and string values or NSDate values). Any help or nudge in the right direction would really (i cannot stress this enough, i mean really) be appreciated[example of error when setting to NSInteger<a href="http://i.stack.imgur.com/Yc7mr.png" rel="nofollow">example of error with NSInteger</a></p>