cast operator

You can use the cast operator convert the following types explicitly:
Notes:
  1. When you are explicitly casting to a decimal type, the discarding of the leading nonzero digits does not cause an exception at run time. For more information about suppressing compiler messages and runtime exceptions, refer to Converting decimal types.
  2. An implicit conversion to a decimal type with an even number of digits may not clear the pad digit, but an explicit cast will clear the pad digit.