convert local basket to an rvalue