Removing invalid casts from hosttracker.