Swapping from pointer to object.