title: How Expensive is Casting an Object?
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/1165602/perfomance-of-typecasting">Perfomance of TypeCasting</a>  </p>
  </blockquote>
  
  <p>How expensive is it to cast as object as a another object?</p>
  
  <pre><code>CustomClass instance = GenericObject as CustomClass
  </code></pre>
  
  <p>Should it be avoided as all costs?</p>
  
  <p>Wanting to see how others think about this. I'm sure it's very situational.</p>