private static Rhino.NativeString RealThis(Scriptable thisObj, IdFunctionObject f) { if (!(thisObj is Rhino.NativeString)) { throw IncompatibleCallError(f); } return (Rhino.NativeString)thisObj; }