Fix missing Cast

Fix missing cast bug if it will be compiled on Arch Linux:
Kernel: 3.12.5-1-ARCH
gcc: 4.8.2 20131219 (prerelease)
qt: 4.8.5