Add ability for passing AnyPointer to restore in RPCClient