rpc cast