Function type_cast
Source pub fn type_cast(value: Value, target: &Type) -> Result<Value, RuntimeError>
Expand description
Casts a Value to the specified target Type.
Follows Rust’s as casting semantics for numeric types.
Unknown casts are treated as no-ops.