(int) $topic_id
or in the sql queries
https://github.com/phpbb/phpbb3/pull/1017/files#L11R568 and https://github.com/phpbb/phpbb3/pull/1017/files#L11R586