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

Template class for type casting operations.

Template parameters
From Source type to cast from
To Target type to cast to

Cast provides a generic interface for converting between types, with specializations for specific type pairs. This enables safe and efficient type conversions while maintaining compile-time type checking.

Usage

// Example casting operation
Cast<SourceType, TargetType> converter;
TargetType result = converter(sourceObject);