Convert repetitions argument to int().