add signed/unsigned conversion for java signed long