Document `cast_value` [ci skip]