use static member function to help convert decimal to other types