Please mention  a shortest and simplest way so that i can convert a HashMap<String, Object> to an array?