title: Android java.util.HashMap cannot be cast to java.lang.String
body: <pre><code>public void onItemClick(AdapterView&lt;?&gt; parentAdapter, View view, int position,
                                       long id) {
                  TextView clickedView = (TextView) view;
                  /* Line 79 */ String selectedRouteName = (String) parentAdapter.getItemAtPosition(position);
                  String temp = selectedRouteName.substring(0, 2);
  </code></pre>
  
  <p>Error shown is: </p>
  
  <pre><code>02-18 01:56:53.676: E/AndroidRuntime(821): java.lang.ClassCastException: java.util.HashMap cannot be cast to java.lang.String
  02-18 01:56:53.676: E/AndroidRuntime(821):  at com.coltonnicotera.londontransitguide.SchedulesActivity$1.onItemClick(SchedulesActivity.java:79)
  </code></pre>
  
  <p>Not sure what is causing this, I found <a href="https://stackoverflow.com/questions/10872292/java-lang-string-cannot-be-cast-to-java-util-hashmap-exception">java.lang.String cannot be cast to java.util.HashMap exception</a> and it seems that I'm doing everything right.</p>