Math not working... var a:Number=1; a+1 = 11?

dbInfo is pulling totalRecords from a url encoded string.

in this case dbInfo.totalRecords = 12

I used totalRec to ensure that it is a number and not a string.

so using math, totalRect + 1 would be 13.

but instead, flash is returning 121

so it’s attaching a 1 to the end of the number(12), not adding it.

var totalRec:Number = dbInfo.totalRecords;
for (d=1; d<int(totalRec+1); d++) {

}

anyone ever expeirence this?