Change a pointer to a reference