title: How to use Conditional Operation with Nullable Int
body: <p>A small problem. Any idea guys why this does not work?</p>
  
  <pre><code>int? nullableIntVal = (this.Policy == null) ? null : 1;
  </code></pre>
  
  <p>I am trying to return <code>null</code> if the left hand expression is True, else <code>1</code>. Seems simple but gives compilation error.</p>
  
  <p>Type of conditional expression cannot be determined because there is no implicit conversion between <code>null</code> and <code>int</code>.</p>
  
  <p>If I replace the <code>null</code> in <code>? null : 1</code> with any valid <code>int</code>, then there is no problem.</p>