[BISERVER-10694] Adding explicit cast to make the compiler happy.