pub trait Cast { fn cast<T>(self) -> T where T: TryFrom<Self>, Self: Sized + Display + Copy, { ... } }
A type cast trait used to replace as conversion.
Performs the conversion.