Update src/cast.c