I have a hashmap defined like this that I cant change
private Map<String, Object> attributes;
The object is a list of Strings (sometimes size == 1, other times > 1).
I have an instance of the attributes map later on in the execution. I am wanna get the Object as List.
This:
List<String> outputs = attributes.get("keys");
throws this error.
incompatible types: java.lang.Object cannot be converted to java.util.List<java.lang.String>
How can I fix it?