Equivalent java cast in C#
<p>I need help to migrate a java method:</p>

<pre><code>(int)System.currentTimeMillis(); //result -186983989 (java) return diferent values
</code></pre>

<p>But in C# return alway the same value:</p>

<pre><code>DateTime Jan1st1970 = new DateTime(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
TimeSpan span = DateTime.UtcNow - Jan1st1970;
Int32 resultado = (int)span.TotalMilliseconds; //result is always -2147483648 and i need same as java
</code></pre>

<p>It is rare becouse in debug quickwatch display the correct value, but in execution <code>resultado</code> is alway -2147483648 </p>

<p><strong>I need this -186983989  result, same as java.</strong></p>
