JSRef ref.callWithIntResult() ref.callWithStringResult(); or add types.asInt() types.asString or types.asFloat interface