Remove extra cast