Fix from for a case when Decimal is passed