Expression parser: fixed typecasting bug.