I want to know how to cast a String into my own class the way org.json.JSONObject does.
You can cast the String: {"key":"value"} as a JSONObject even though JSONObject inherits only from Object.
How do i get a String to cast as a MyOwnClassObject while only inheriting from Object?