title: assign value from server to integer in objective -c
body: <p>I am coming from swift background, I have a code in objective -c that take value from server and it takes correctly here is the code bellow.</p>
  
  <pre><code>if (![message_expiration intValue]){
      NSLog(@"Check the message expiration integer value");
  
  
      _MessageExpire = [message_expiration intValue];
  
  
  
  
  }
  </code></pre>
  
  <p>and I have a variable:</p>
  
  <pre><code>@property (nonatomic, assign) NSInteger *MessageExpire;
  </code></pre>
  
  <p>what I want is:  My variable that is integer takes the value that come from server  and I did in this way :</p>
  
  <pre><code>_MessageExpire = [message_expiration intValue];
  </code></pre>
  
  <p>but I get the error that say: incompatible integer to pointer conversion assigning .....</p>
  
  <p>Any help appreciate</p>