title: Error using Drop Down List HTML Helper
body: <p>In my controller, I have defined the select list items and the passed the list to the view as </p>
  
  <pre><code>Dim mySelectItems = New List(Of SelectListItem) From {
      New SelectListItem With {.Text = "First item", .Value = "1", .Selected = True}
  }
  
  ViewData("doctorList") = mySelectItems
  </code></pre>
  
  <p>Now, from my view, I am trying to feed the values into a DropDown List using the HTML Helper.</p>
  
  <pre><code>&lt;label for="appointment_doctor"&gt;Select Doctor&lt;/label&gt;
  &lt;%= Html.DropDownList("doctor", ViewData("doctorList"))%&gt;
  </code></pre>
  
  <p>Now, I am thinking this should work but it is not.</p>
  
  <p>Error Log:</p>
  
  <blockquote>
    <p>Overload resolution failed because no accessible 'DropDownList' can be
    called without a narrowing conversion:
        Extension method 'Public Function DropDownList(name As String, selectList As System.Collections.Generic.IEnumerable(Of
    System.Web.Mvc.SelectListItem)) As System.Web.Mvc.MvcHtmlString'
    defined in 'System.Web.Mvc.Html.SelectExtensions': Argument matching
    parameter 'selectList' narrows from 'Object' to
    'System.Collections.Generic.IEnumerable(Of
    System.Web.Mvc.SelectListItem)'.
        Extension method 'Public Function DropDownList(name As String, optionLabel As String) As System.Web.Mvc.MvcHtmlString' defined in
    'System.Web.Mvc.Html.SelectExtensions': Argument matching parameter
    'optionLabel' narrows from 'Object' to
    'String'. G:\Surgery\Surgery\Views\Appointment\Index.aspx 11  13  Surgery</p>
  </blockquote>