title: Fastest way to iterate over a stack in c#
body: <p>I feel that using GetEnumerator() and casting IEnumerator.Current is expensive. Any better suggestions?<br/><br/>
  I'm open to using a different data structure if it offers similiar capabilities with better performance.</p>
  
  <p><strong>After thought:</strong><br/>
  Would a generic stack be a better idea so that the cast isn't necessary?</p>