I'm currently trying to integrate the latest version of the library into our codebase, and i've run into a problem.
Our code uses asBEHAVE_REF_CAST and asBEHAVE_IMPLICIT_REF_CAST to register a class hierarchy.
These behaviors have been deprecated, so i'm rewriting the code to use the new opCast and opImpCast operators instead.
The problem is that, unlike the behaviors, the operator doesn't have a compile time guarantee that the destination type is a specific type.
Is there any way to replicate the behavior of the original cast operators?
Preferably without building a table that stores the hierarchy of application registered types.