When executing the following query, I get the error:
The specified cast from a materialized \'System.Int32\' type to the \'System.Double\' type is n
For me I was calling a stored procedure from EF 6 of which I wrote a poco, but I didn't write the sproc. I needed to look at all the tables that had field returning data types. and then change my Poco from a int to boolean.
stored procedure
public Boolean Active { get; set; }