Casting double to int like java
<p>I need some help casting a big double to int, in java:</p>

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

<p>The result always return the int32.minvalue, but I need the same result as java.
but in C#:</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>Thanks in advance, can see this image <a href="https://public.blu.livefilestore.com/y1pwU6fnT0v663NPqa7cSwwU9MSFQeO1TjdOdip1GFn8Eqg0Fgo_rsA3ER2jw5RDpXGOa1WiMc_PFIzzjxkqWe9zQ/wtf.png?psid=1" rel="nofollow">https://public.blu.livefilestore.com/y1pwU6fnT0v663NPqa7cSwwU9MSFQeO1TjdOdip1GFn8Eqg0Fgo_rsA3ER2jw5RDpXGOa1WiMc_PFIzzjxkqWe9zQ/wtf.png?psid=1</a>.</p>
