You can convert any data type to a string using the vl-princ-to-string or vl-prin1-to-string functions.
However, since an entity name is simply a pointer to the DXF data in the drawing database, it is useless when the pointer is lost through converting it to a string or when not assigned to a variable.