Changed getItemView method to crash with a ClassCastException if the view given is not a WrapperView.