Long-Number conversion accuracy

Hi,

Some of my Java methods return a long, whose accuracy is not maintained when converted to a JavaScript Number. The number is an ID (arithmetic operations aren't required), but I eventually need to pass it through to other Java methods.

Is there a way to accurately get the String value of this long (for display and reference in JS land) and then convert back to a long to pass to Java methods?

Thanks!