Cast Java Object into Java Map<String,Object>
问题 I am using org.eclipse.jetty.util.ajax.JSON to parse JSON text. But the JSON.parse(string) method produces an Object and I need it as a Map. Internally it is an object of exactly the mentioned class. But how do you cast an Object into a Map without constructing a new one or getting the unchecked cast warning? Currently, I have found only one solution without the unchecked cast warning, but with constructing a new Map, which is actually of course not a casting at all. private Map<String,Object