class InformationSet implements Cloneable {

    public static <T> T convert(Object obj, Class<T> tclass) {
        if (obj == null) {
            return null;
        }
        if (tclass.isInstance(obj)) {
            return (T) obj;
        } else if (tclass.isArray()) {
            Class oclass = obj.getClass();
            if (oclass.isArray()) {
                int len = Array.getLength(obj);
                Object nobj = Array.newInstance(tclass.getComponentType(), len);
                try {
                    System.arraycopy(obj, 0, nobj, 0, len);
                    return (T) nobj;
                } catch (ArrayStoreException ex) {
                    return null;
                }
            }
        }
        return null;
    }

    public  InformationSet();

}