It would be useful for you to know what value is in inttotaltopics when the error occurs... you could response.write out the value.
I took a quick look at the snitz code and it looks to me like the inttotaltopics is immediately initialized to zero after it is declared, and there are several places where it is assigned a value, but none of them look like a problem.
There should be no need to cast it to an int using cint... but still, you found that fixes the problem.
In your case a type mismatch would occur in your "if" statement if inttotaltopics was something other than a number and if it cannot be coerced into being a number, such as a string that does not contain a number.
So... the interesting thing is, why would casting it to an int be fixing your problem, since that conversion would typically occur automatically in vbscript.
What version of snitz are you using?
The version you have and the version I have might be different. It might be helpful to take a look at the forums and faq's at the snitz site.
Woody Z http://www.learntoprogramnow.com