title: MVC Razor dynamic model, 'object' does not contain definition for 'PropertyName'
body: <p>Using MVC 3 with Razor view engine.
  I have this View:</p>
  
  <pre><code>@model dynamic
  @{
      var products = (List&lt;ListItemBaseModel&gt;)Model.Products;
      var threshold = (int)(Model.Threshold ?? 1);
      var id = Guid.NewGuid().ToString();
  }
  </code></pre>
  
  <p>It is called from another view using this code:</p>
  
  <pre><code>@Html.Partial("PartialViewName", new { Products = Model, Threshold = 5 })
  </code></pre>
  
  <p>In both Views, when i debug them and watch Model, it seems to contain the correct object. 
  When i execute the code i get an error on the "var products =" line saying:</p>
  
  <p>'object' does not contain a definition for 'Products'</p>
  
  <p>Can anyone explain to me why i get that error?
  Again, when i watch the Model object in debugging mode it looks all right (having 2 properties: Products and Threshold)</p>