title: How to Convert from double to Int64
body: <p>I am trying to convert a double to an Int64 and get some strange behaviors. To test my problem I tried the following code:</p>
  
  <pre><code>double temporary = Int64.MaxValue;
  Int64 tem = Convert.ToInt64(temporary);
  </code></pre>
  
  <p>I still get an Overflow exception when converting the double to an Int64. Is this a bug? Or is there something I am not understanding?</p>