Explicitly convert potential nil to integer.