title: The specified cast from a materialized 'System.Int32' type to the 'System.String' type is not valid
body: <p>I'm using Entity Framework 6.0.2; I was using a previous version before I started getting this error.</p>
  
  <p>Basically, I set my models with "string" properties and execute a query or stored procedure and dump the results out as strings, this has always worked. </p>
  
  <p>Any ideas how to fix? Perhaps a "Convention" I could use for the conversion?</p>
  
  <p>Ex: </p>
  
  <pre><code>SQL:
  select ROW_NUMBER() OVER (ORDER BY (select Null)) AS Id, '0', 'Test0', 'some kind of data', 'Test1', 'possibly a datetime type', 'Test2'
  
  C#:
  public class SomeModel
  {
      public int Id { get; set; }
      public string Test0 { get; set; }
      public string Test1 { get; set; }
      public string Test2 { get; set; }
  }
  
  Invalid Operation Exception:
  var records = dbContext.Database.SqlQuery&lt;SomeModel&gt;("select ROW_NUMBER() OVER (ORDER BY (select Null)) AS Id, '0', 'Test0', 'some kind of data', 'Test1', 'possibly a datetime type', 'Test2'").ToList();    
  </code></pre>
  
  <p>.</p>