use same jint object conversion code in smuggler and database projects