toObject() member function?

I’m trying the toObject() member function of a ds.dataclass.entity: but when I do, in either v17.1 or 17R5, I get “Unknown member function”.

$Entity_ob:=$DsOb.toObject()

I did this after reading the documentation:
https://doc.4d.com/4Dv17/4D/17.1/Entities.300-4201303.en.html

is “toObject()” not actually implemented?

I found the answer:
I was performing a ds.dataclass.query(), which produced an entity selection.
I needed instead to perform a ds.dataclass.get(), which produces a single entity.

Problem solved.