Provides a cast trait for safe type conversions between related types.
# Cargo.toml
[dependencies]
cast_trait = "0.1.2"No compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Uses the Cast trait to convert an i32 to f64.
Ensure the source and target types are compatible; use TryCast for fallible conversions.
No dependency data recorded yet.