Changing an object name to a string

Is there any way to do this?
Say I have a global variable called yarr:
_global.yarr = textbox;
and I want to change that in to a string, I want to change it to “textbox” instead of textbox. Is there any way to do that?