added clone() to JSONObject
added two casting methods