title: C# Recover Int64 from negative Int32
body: <p>I want to recover this <code>long</code> value, that was mistakenly converted to <code>int</code></p>
  <pre><code>long longValue = 11816271602;
  int intValue = (int)longValue; // gives -1068630286
  long ActualLong = ?
  </code></pre>
  <p>Right shift <code>32</code> bits of (<code>intValue &gt;&gt; 32</code>) gives <em>incorrect</em> result.</p>