update casting