convert strings to ints in type instance