Solved problem with Entity casting on CrudDAL