title: SqlFunctions.StringConvert unnecessary padding added
body: <p>In my ViewModel i am returning the following for a dropdown list:</p>
  
  <pre><code>public IEnumerable&lt;SelectListItem&gt; Statuses
      {
          get
          {
              using (var context = new AssetManager.Models.AssetManagerEntities())
              {
                  var query = from status in context.AssetStatuses
                              where status.Reserved != true
                              select new SelectListItem()
                                         {
                                             Value = SqlFunctions.StringConvert((double)status.Id),
                                             Text = status.Name,
                                             Selected = false
                                         };
  
                  return query.ToList();
              }
          }
      }
  </code></pre>
  
  <p>Then in my View it goes a little like this:</p>
  
  <pre><code> @Html.DropDownListFor(model =&gt; model.Status, (IEnumerable&lt;SelectListItem&gt;)Model.Statuses)
  </code></pre>
  
  <p>This all works ok, except that SqlFunctions.StringConvert, by default makes the string a length of 10, so i end up with this in the html:</p>
  
  <pre><code>&lt;option value="         7"&gt;Free to loan&lt;/option&gt;
  </code></pre>
  
  <p>Take note of the spacing in the value field.  This is a problem, because my ViewModel requires this field to be an int.</p>
  
  <p>I could simply specify the length parameter but this is not dynamic.</p>
  
  <p>Has anyone seen this problem, or have a resolution to it?</p>
  
  <p>Thanks,
  Nick</p>