It's a C-style cast. Replace it by static_cast< long unsigned int >