Removed cursor cast.