msi: Convert string variables to ints when appropriate.