title: casting datareader value to a to a Nullable variable
body: <p>I'm trying to run the following code but get a casting error.
  How can I rewrite my code to achive the same ?</p>
  
  <pre><code>boolResult= (bool?)dataReader["BOOL_FLAG"] ?? true;
  intResult= (int?)dataReader["INT_VALUE"] ?? 0;
  </code></pre>
  
  <p>Thanks</p>