title: Is it better to Cast and object or use dynamic during databinding
body: <p>I guess I am curious what is better?
  Casting the DataItem to the type i know it is...
  Or
  pass the object to a function that expects a Dynamic, and let the DLR do its magic.</p>
  
  <pre><code>  &lt;asp:Repeater ID="rptItems" runat="server"&gt;
      &lt;ItemTemplate&gt;
        &lt;div&gt;
          &lt;%# FormatBlogLink(Container.DataItem) %&gt;
          OR
          &lt;%# FormatBlogLink((BlogPost)Container.DataItem) %&gt;
        &lt;/div&gt;
      &lt;/ItemTemplate&gt;
    &lt;/asp:Repeater&gt;
  </code></pre>
  
  <p>Code</p>
  
  <pre><code>protected string FormatBlogLink(dynamic blogPost)
  {
  /// Do a bunch of stuff 
  }
  </code></pre>
  
  <p>vs:</p>
  
  <pre><code>protected string FormatBlogLink(BlogPost blogPost)
  {
  /// Do a bunch of stuff 
  }
  </code></pre>
  
  <p>My example is simple, 
  I thought i read that the DLR will cache things it looked at so it, 
  so I am curious, what is worst for larger data sources... lots of casting or lots of using dynamic? 
  (or) am i a bit crazy ... :)</p>