Casting update for insert