pub fn cast_value(v: &Value, ty: &str) -> Result<Value>
Cast a value to the named SQL type, mirroring CAST(expr AS ty). Types outside the engine’s coercion surface return SQLError::Unsupported.
CAST(expr AS ty)
SQLError::Unsupported