title: Why does Convert.ToDateTime(Int64) fail?
body: <p>Why does the following fail w/ an "Invalid cast from 'Int64' to 'DateTime'." exception?</p>
  
  <pre><code>long oldDate=new DateTime(2015, 1, 1).Ticks;
  DateTime newDate=Convert.ToDateTime(oldDate);
  </code></pre>
  
  <p>.Ticks is a long/Int64 and the Convert.ToDateTime(Int64) MSDN docs show the method accepting a long/Int64. </p>
  
  <pre><code>public static DateTime ToDateTime(
    long value
  )
  </code></pre>
  
  <p>EDIT:
  As pointed out by ebyrob below it should be:</p>
  
  <pre><code>long oldDate=new DateTime(2015, 1, 1).Ticks;
  DateTime newDate=new DateTime(oldDate);
  </code></pre>