Did I find a bug?

From the referents page:
int() : Converts any value of a primitive data type (boolean , byte , char , color , float , int , or long ) or String to its integer representation.

This does work but for a long this stops at 16777217.

At a a different place it says :
you’ll usually have to convert to a int using the (int) syntax.

This works for all values.
Thanks for your help.
Cheers,
Adriaan.

2 Likes