Force integer type for flags value