pub fn cast_value(value: &DataValue, target: CastTarget) -> Result<DataValue>Expand description
Coerce a value to the requested target type. Errors describe why a value could not be represented; callers decide whether that error is fatal (CAST) or should become NULL (TRY_CAST). NULL always casts to NULL.