cls is a replacement for the class function which also works for the collection objects. It falls back to the ordinary class function for other objects.
cls
class
cls(x)
x
a collection object
d <- dict() cls(d)