Converting an element of a symbol to integer to be used in for loop

I want to use an element of symbol (extracted from mx.symbol.max) as an integer in for loop. How can I convert a symbol to an integer?