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

...mpting to determine the target Category, the Cast function was getting Numeric for Decimal with 0 scale.

(cherry picked from commit 3f4eafa)