remove unneded cast in pcmisc.cpp