Added static_cast for sf::Uint8 (fixes #731).