static bool numEqual(const JValue& jnum, const T& nativeNum) { T num; if (jnum.asNumber(num) == CONV_OK) return num == nativeNum; return false; }