Stored procedure :The specified cast from a materialized 'System.String' type to a nullable 'System.Single' type is not valid
<p>I run this function :</p>

<pre><code>public List&lt;ViewDomainClass.Support.Report.ViewReportShopFabrication&gt; ShowReport(int Id)
{
    List&lt;ViewDomainClass.Support.Report.ViewReportShopFabrication&gt; lst = new List&lt;ViewDomainClass.Support.Report.ViewReportShopFabrication&gt;();

    lst = _ctx.Database.SqlQuery&lt;ViewDomainClass.Support.Report.ViewReportShopFabrication&gt;("EXEC SPViewShopFabricationReportDetail @ReportDetailId ="+Id).ToList();
    return lst;
}
</code></pre>

<p>And I get this error :</p>

<blockquote>
  <p>An unhandled exception of type 'System.InvalidOperationException' occurred in EntityFramework.dll</p>
  
  <p>Additional information: The specified cast from a materialized 'System.String' type to a nullable 'System.Single' type is not valid.</p>
</blockquote>

<p>I know that the problem is casting. But my database columns are about 40 columns. So I want to find the exactly cast column? Is it possible to find which column returns the error?</p>