Fix ``TypeError`` issue when using ``approx`` with a ``Decimal`` value.