title: Problem with getting selected OBJECT from dropdownlist
body: <p>I have a problem with getting selected objectfrom my list.</p>
  
  <p>I bind collection of users to dropdownlist by:</p>
  
  <pre><code> ddlContractors.DataSource = service.GetAllUsers();
                  ddlContractors.DataTextField = "Name";
                  ddlContractors.DataValueField = "Id";
                  ddlContractors.DataBind();
  </code></pre>
  
  <p>It's working. 
  But when I try getting selected object by:</p>
  
  <pre><code>var user = (User)ddlContractors.SelectedItem;
  </code></pre>
  
  <p>I get:</p>
  
  <pre><code>    (User)ddlContractors.SelectedItem   Cannot convert type 'System.Web.UI.WebControls.ListItem' to 'GWDSite.GWDService.User'
  </code></pre>
  
  <p>How can I get object user from dropdownlist ? I can change type of my list control if it is necessary</p>