added annotation support for the IObject::toArray