Add the required cast in another place.