Environment variables (batch variables) are always strings; they cannot be stored as integers.
The SET command with the /A option can parse integral numbers from strings, perform arithmetic operations, and store the integral result in an environment variable. But the final result is still a string representation of the final number.
Type help set
or set /?
from a command prompt for more info about the SET /A option.