Fixed a bug in type-casting.

Variable `PushedValues` wasn't decreased after pop-ing a value from the
stack.