The specified cast from a materialized 'System.Int64' type to the 'System.Int32' type is not valid.
We usually get this error when we use Raw SQL in EntityFrameWork, and try to stored returned values in List of your Custom Class. For Example:
[Continued]