There are a number of ways to refer to AutoCAD drawing objects with AutoLISP. These include the following:
AutoLISP provides functions to convert from one type of object identifier to another.
You may find the same drawing object represented by different identifiers and data types such as a handle string, an ename, a VLA-object, or an ObjectARX object ID integer. To obtain the identifier with the data type your program requires, use the following strategies:
(setq handle-circle (cdr (assoc 5 (entget ename-circle)))) "4F"
(handent handle-circle) <Entity name: 27f0538>
(setq vla-circle (vla-handleToObject acadDocument handle-circle)) #<VLA-OBJECT IAcadCircle 03642c24>
(vla-get-handle vla-circle) "4F"
(setq objid-Circle (vla-get-objectid vla-circle)) 41878840
(vla-ObjectIDtoObject acadDocument objid-circle) #<VLA-OBJECT IAcadCircle 03642c24>