th</em> of the other casts... again, I feel this version is clearer. (I could change my mind tomorrow, mind you...) </li>    <li>I&#39;ve explicitly used checked blocks for int and long. For float and double we won&#39;t get overflow anyway, and for decimal the checked/unchecked context is irrelevant. </li> </ul>  <p>There&#39;s one optimization we can perform here. Consider this loop, for the nullable sequence:</p>  <div class="code"><span class="ValueType">long</span> count = 0;     <br /><span class="Val