document casts