title: JNI: converting unsigned int to jint
body: <p>How do I convert an unsigned int to jint? Do I have to convert it at all, or can I just return it without any special treatment? This is basically my code right now, but I can't test it, as I haven't setup JNI locally. </p>
  
  <pre><code>JNIEXPORT jint JNICALL
  Java_test_test(JNIEnv* env, jobject obj, jlong ptr)
  {
      MyObject* m = (MyObject*) ptr; 
      unsigned int i = m-&gt;get(); 
      return i; 
  }
  </code></pre>