Remove ClassCastException since can never be thrown now that we use
generics