public static System.Object ToObject(System.Decimal AValue)
 {
     if (IntUtils.IsValid64(DecimalUtils.ToString(AValue)))
     {
         return(Convert.ToString(AValue));
     }
     else
     {
         return(System.String.Empty);
     }
 }
 public static System.Decimal ToDecimal(System.String AValue)
 {
     if (AValue.Contains(","))
     {
         AValue = AValue.Replace(".", "");
     }
     else
     {
         AValue = AValue.Replace(".", ",");
     }
     System.Decimal NewValue;
     if (!DecimalUtils.IsValid(AValue, out NewValue))
     {
         return(0);
     }
     else
     {
         return(NewValue);
     }
 }