[CLEANUP] #5201 Convert intval to casts

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