Converts threshold to Decimal type.