[SP] Cast fix to shut up g++ errors.
[MP] Cast fix to shut up g++ errors.