template<class From, class To>
Rodin::Utility::Cast class

Template for defining type conversion operations.

Template parameters
From The source type to convert from.
To The destination type to convert to.

The Cast template provides a customization point for defining explicit type conversions between arbitrary types. Specializations of this template can implement custom conversion logic for specific type pairs.

This is useful when standard conversions are not available or when custom conversion semantics are required.