title: Is there any performance difference between different linq usage ordering?
body: <p><code>IEnumerable&lt;Element&gt;.Cast&lt;SomeClass&gt;().FirstOrDefault();</code></p>
  <p>vs</p>
  <p><code>IEnumerable&lt;Element&gt;.FirstOrDefault().Cast&lt;SomeClass&gt;();</code></p>
  <p>The reason why I ask is, I see a lot of examples online using it in the first manner.
  However, is the second linq sequence better performance-wise, since it avoids casting all Elements in the IEnumerable first? Or maybe the first one is safer? Or are they actually doing exactly the same backstage?</p>