updating cast check