I have an `arrayAdapter` for a `ListView`. Inside this `arrayAdapter` I am calling a method which is for some reason causing a `ClassCastException`.

**The arrayAdapter**

```
String[] strings = /*...*/;
ArrayAdapter<String> adapter = new ArrayAdapter<String> (this,R.layout.item,strings);
ListView listView = (ListView) (findViewById(R.id.listView));
listView.setAdapter(adapter);

```

**Crashing code**

```
private void addListener() {
    ListView listView  = (ListView) findViewById(R.id.listView);
    listView.setOnItemClickListener(
        new AdapterView.OnItemClickListener() {
        @Override
        public void onItemClick(AdapterView<?> parent, View viewClicked, int position, long id) {
            TextView textView = (TextView) viewClicked;
        }
    }); 
}

```