[ticket/11271] Typecast forum and topic id to integer

PHPBB3-11271