I have an interface to convert object to string:
public interface Converter { String asString(T object); }
And a map to store
You should change the code like this:
public interface Converter { String asString(Object object); }
I think it will work.