This casting is an abomination.