java <-> .net int/long conversion (-,0,+)

Signed-off-by: Christian Lüthold <biocodr@gmail.com>