i have written the following code
var resumeedit=(from t in db.Resumes where t.User.UserID==theUserID && t.ResumeID==theResumeID select t).Select(t=> new EditResumes
{
Iswizard=t.isWizard,
Resumeid=t.ResumeID.ToString()
}).First();
EditResumes ed = (EditResumes)resumeedit;
and it is giving error LINQ to Entities does not recognize the method 'System.String ToString()' method, and this method cannot be translated into a store expression.