Use typefaces to objectify configuration


class x {}
objx = TypeFaces.cast(x.class, IDictionary);

I already do this in some places in source code. Look for it