[ticket/11495] Remove useless cast

PHPBB3-11495