title: How do I test if a primitive in Objective-C is nil?
body: <p>I'm doing a check in an iPhone application - </p>
  
  <pre><code>int var;
  if (var != nil)
  </code></pre>
  
  <p>It works, but in X-Code this is generating a warning "comparison between pointer and integer." How do I fix it? </p>
  
  <p>I come from the Java world, where I'm pretty sure the above statement would fail on compliation.</p>