HRCPP-123 Broken build on gcc 4.1.2 - compiler warning

Add explicit cast to remove the warning.

https://issues.jboss.org/browse/HRCPP-123