Remove non-functioning cast