Transforming some variables to integers