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”.


I did this after reading the documentation:

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.