add RObject for upcast