Hi Rodolfo,
Welcome to our forums!
Usually you pass proxies around as proxies, so there is no need to call stringToProxy or perform any casting.
However, Ice also provides a way to represent a proxy as a printable ASCII string. This is typically used for bootstrap: you manufacture proxies for a few root objects, and get proxies to other objects from them.
This is done through stringToProxy or propertyToProxy on the communicator object. I guess we could have casts that perform also stringToProxy, i.e.:
Code:
MyInterfacePrx obj = MyInterfacePrx.checkedStringToProxy(ic, str);
but this doesn't sound more convenient than:
Code:
MyInterfacePrx obj = MyInterfacePrx.checkedCast(ic.stringToProxy(str));
Cheers,
Bernard