This reverts commit 8abe7b11. Added the missing cast which was causing a build problem on certain compilers.