title: ASP.NET Linq data source - using enum in where parameters
body: <p>I have a linqdatasource and I want to use an enum for Type as below:</p>
  
  <pre><code>&lt;asp:linqdatasource id="GridDataSource" runat="server" enabledelete="true" Where="Type == @Type"&gt;
      &lt;whereparameters&gt;
          &lt;asp:dynamiccontrolparameter controlid="FilterRepeater" /&gt;
          &lt;asp:QueryStringParameter QueryStringField="Type" Name="Type" ConvertEmptyStringToNull="false" /&gt;
      &lt;/whereparameters&gt;
  &lt;/asp:linqdatasource&gt;
  </code></pre>
  
  <p>It keeps throwing an error:</p>
  
  <pre><code>Operator '==' incompatible with operand types 'ProductType' and 'String'
  </code></pre>
  
  <p>ProductType is my Enum, and String is my input type.  I don't seem to be able to convert one to the other...</p>