title: Specified cast is not valid (double precision to int)
body: <p>Here I need to cast to double precision to integer.   </p>
  
  <p><strong>Example</strong>:</p>
  
  <pre><code>obj.DayDifference = !string.IsNullOrEmpty(reader["DateDiff"].ToString()) ?   
                 (Int32)reader["DateDiff"] : 0;
  </code></pre>
  
  <p><strong>Type</strong>:</p>
  
  <ul>
  <li><p><code>DayDifference</code> of type <code>int</code></p></li>
  <li><p><code>DateDiff</code> of type <code>double precision</code> in the <code>database table</code>.</p></li>
  </ul>
  
  <p><strong>Error</strong>:</p>
  
  <blockquote>
    <p>Specified cast is not valid </p>
  </blockquote>