title: Problem getting GUID string value in Linq-To-Entity query
body: <p>I am trying to write a GUID value to a string in a linq select. The code can be seen below (where c.ID is GUID), but I get the following error:</p>
  
  <p><em>Unable to cast the type 'System.Guid' to type 'System.Object'. LINQ to Entities only supports casting Entity Data Model primitive types.</em></p>
  
  <pre><code>var media = (
                  from media in Current.Context.MediaSet
                  orderby media.CreatedDate
                  select new Item
                  {
                      Link = "~/Media.aspx?id=" + media.ID,
                      Text = "Media",
                      Time = media.CreatedDate
                  }
              ).ToList();
  </code></pre>