title: (PartialView) The model item passed into the dictionary is of type 'Customer', but this dictionary requires a model item of type 'UserProfile'
body: <pre><code>@model Customer
  
  @Html.Partial("_UserProfile", (UserProfile)Model.UserProfile)
  </code></pre>
  
  <p>When i run this code, i get this error:</p>
  
  <pre><code>The model item passed into the dictionary is of type 'Customer', but this dictionary requires a model item of type 'UserProfile'.
  </code></pre>
  
  <p>Partial View _UserProfile is strongly typed.</p>
  
  <p>I want to be able to edit these field. 
  Any suggestions?</p>