grr fix another illegal cast