[CLEANUP] #5201 Convert intval to casts

Change-Id: Id968a49be1284890b0abfaa934909e9c4f124fa6
Reviewed-on: http://review.typo3.org/35435
Reviewed-by: Oliver Klee <typo3-coding@oliverklee.de>
Tested-by: Oliver Klee <typo3-coding@oliverklee.de>