implementing intent to open detail activity, getting ClassCastException