Bacuase the documentation for VarType appears to be wrong, it returns a Long rather than an Integer. In other words, using type declaration characters for some clarity,VarType(x) actually returns 7& rather than 7%
So you are actually looking at the difference between
TypeName(7%)
and
TypeName(7&)