Inside data access layer of my application i am declaring object as under
MemberProfileId = (Int64)(toReturn.Rows[0]["MP_MemberProfileId"]);
Above code is throwing an error:
Cannot unbox 'toReturn.Rows[0]["MP_MemberProfileId"]' as a 'long' System.Data.SqlTypes.SqlInt64
Can someone please help?