public static interfaceIDL narrow(org.omg.CORBA.Object obj)
    {
        if (obj == null)
            return null;
        if (obj instanceof interfaceIDL)
            return (interfaceIDL)obj;

        if (obj._is_a(id()))
        {
            _interfaceIDLStub stub = new _interfaceIDLStub();
            stub._set_delegate(((org.omg.CORBA.portable.ObjectImpl)obj)._get_delegate());
            return stub;
        }

        throw new org.omg.CORBA.BAD_PARAM();
    }