case CORBA::tk_objref : {
MyPyObjRefList = PyTuple_New( 1 ) ;
PyObject * ObjValue ;
+#if OMNIORB_VERSION >= 4
+ data >>= (CORBA::Any::to_object ) ObjRef ;
+#else
data >>= ObjRef ;
+#endif
IORObjRef = ObjectToString( ObjRef ) ;
ObjValue = Py_BuildValue( "s" , IORObjRef ) ;
PyTuple_SetItem( MyPyObjRefList , 0 , ObjValue ) ;