title: What does this warning mean in Xcode?
body: <p>I have a resource which is fetched from a JSON API.
  The JSON is parsed into a NSDictionary which, in this case is called <code>game</code>.</p>
  
  <p>I'm creating a new instance of my Game class based on the attributes from the JSON.</p>
  
  <p>Game class has a property called <em>userRegistered</em> which is defined as follows:</p>
  
  <pre><code>// in Game.h
  @interface
  @property (nonatomic, assign) BOOL userRegistered;
  
  
  // elsewhere in my code I have
  Game *newGame = [[Game alloc] init];
  newGame.userRegistered = ([game objectForKey:@"user_registered"] &gt; 0);
  </code></pre>
  
  <p>The "user_registered" key in the dictionary will always be either 1 or 0.</p>
  
  <p>Xcode warns me the I have -
  <code>warning: Semantic Issue: Incompatible integer to pointer conversion passing 'int' to parameter of type 'BOOL *' (aka 'signed char *')</code></p>
  
  <p>Can someone please explain the issue and how I might resolve it?</p>
  
  <h2>Update</h2>
  
  <p>My full game class is defined as follows:</p>
  
  <pre><code>#import &lt;Foundation/Foundation.h&gt;
  
  @interface Game : NSObject
  
  @property (nonatomic, copy) NSString *name;
  @property (nonatomic, copy) NSString *photoURL;
  @property (nonatomic, copy) NSString *gameURL;
  @property (nonatomic, assign) BOOL *userRegistered;
  
  @end
  
  // Game.m
  #import "Game.h"
  
  @implementation Game
  
  @synthesize name = _name;
  @synthesize partnerName = _partnerName;
  @synthesize photoURL = _photoURL;
  @synthesize gameURL = _gameURL;
  @synthesize userRegistered = _userRegistered;
  
  @end
  </code></pre>
  
  <p>I'm getting the error in one of my ViewControllers in this method</p>
  
  <pre><code>     // api_response.body has just been set to an __NSCFArray containing 
       // NSDictionaries by AFNetworking
       NSDictionary *game;
       Game *newGame;
       for (game in api_response.body){
           newGame = [[Game alloc] init];
  
           NSLog(@"Creating a new game");
           // set attributes for new game instance
           newGame.name = [game objectForKey:@"name"];
           newGame.photoURL = [game objectForKey:@"photoURL"];
           // user registered is either 0 (false) or 1 (true)
           newGame.userRegistered = [[game objectForKey:@"user_registered"] intValue];
  
           // add the game instance to the appropriate array
           [self addGameToGamesArray:newGame];
           newGame = nil;
       }
  </code></pre>
  
  <p>The warning shows over <code>newGame.userRegistered = [[game objectForKey:@"user_registered"] intValue];</code></p>