Smart polymorphic Variant class for arithmetic operations with OPA-data types