I am wondering if it would be possible to convert Java `int` to a C `unsigned int` especially if Java `int` is negative?

Edit in response to comments: the conversion isn't through JNI but rather I have a set of `int` that are written to a storage by a Java library. There exists a C version of that library but it uses `unsigned int`. I want to use the C library to read the `int` persisted by the Java library.