Fix cast with FontButton and LinkButton.