Cannot define a user-defined conversion to or from System.Variant
User-defined conversions, either implicit or explicit, cannot convert to or from the variant data type.
The following sample generates CS0614:
namespace VariantConversions { class C { public static implicit operator variant (C c) { // CS0614 return 0; } public static void Main () { } } }