private static object __STUB__ValueOf(ScriptEngine engine, object thisObj, object[] args) { thisObj = TypeConverter.ToObject(engine, thisObj); if (!(thisObj is ObjectInstance)) throw new JavaScriptException(engine, ErrorType.TypeError, "The method 'valueOf' is not generic."); return ((ObjectInstance)thisObj).ValueOf(); }