There should be a space after the <, and the cast is redundant: i < VoxelSceneStats::ITEM_COUNT.