[MONDRIAN-1631]  Cast(... as Integer) was returning a Double.  When att...

...empting to determine the target Category, the Cast function was getting Numeric for Decimal with 0 scale.