I am having the user input an index. That index will be used to find a particular object called Movie in the list array called `movieList`. In that object i want to find the value of `genreOfMovie` and convert it to `String`.

I am using this line of code:

`Movie genreOfMovie = (Movie) movieList.get(Integer.parseInt(index) - 1);`

to set the veritable to what the user is looking for.

However when i run the program I dont get a string of a genre , what i get is some thing similar to `database.Movie@71aa1ce9`. Database if the name of the program and Movie is the name of the object so what is `@71aa1ce9` and how do i change this like 

```
Movie genreOfMovie = (Movie) movieList.get(Integer.parseInt(index) - 1); 

```

of code to print some sort of string like action because that is what was stored in there.

```
      String index  = TxtSearch.getText();
      Movie genreOfMovie = (Movie) movieList.get(Integer.parseInt(index) - 1);
      int counter = 0;
      do {
          counter++;
      } while (CbxGenres.getComponent(counter) != genreOfGame.toString());

```