Caused by: java.lang.ClassCastException: foo cannot be cast to bar

Caused by: java.lang.ClassCastException: foo cannot be cast to bar