Add explicit cast to fix build with gcc-4.8
Summary: Add explicit cast to fix build with gcc-4.8
Test Plan: Tested building for openSUSE Leap 42.2, which uses gcc 4.8
Reviewers: apol
Reviewed By: apol
Subscribers: fvogt
Differential Revision: https://phabricator.kde.org/D5081