receive pData as RObject instead of S4 object