EG/TJ: added cast to prevent compile warning.