As with operator overloading, you use the operator keyword to declare the conversion method. The full syntax for the declaration of the conversion method is:
public static <explicit|explicit> operator conv_type_out (conv_type_in operand)
Besides classes, you can also write conversion methods for structs (see Chapter 26).
The conversion method must be static.
The conversion method must either return the type for which the conversion is defined, or take that type in as one of the method parameters.