title: C# Casting vs. Parse
body: <p>Which of the following is better code in c# and why?</p>
  
  <pre><code>((DateTime)g[0]["MyUntypedDateField"]).ToShortDateString()
  </code></pre>
  
  <p>or</p>
  
  <pre><code>DateTime.Parse(g[0]["MyUntypedDateField"].ToString()).ToShortDateString()
  </code></pre>
  
  <p>Ultimately, is it better to cast or to parse?</p>