remove unneeded cast in rpcmisc.cpp