Strange behavior of Evaluate function

Topics: Help
Apr 18 at 10:16 AM
I'm using NCalc in my application and I have a "casting" problem.
This is my input value: [P]=[FFFF;HEX]
This is my expression : (([P]AND[01;HEX])LS_4)=[10;HEX]

This works fine.
If I set input value: [P]=[1FFFF;HEX]

I have following exception: Value was either too large or too small for a UInt16.

Thanks in advance.