The column must be converted to int before the loop ends