@classmethod
def cast(cls, fx_spot, domestic_curve=None, foreign_curve=None):
    """ creator method to build FxCurve """
    if not domestic_curve.origin == foreign_curve.origin:
        raise AssertionError()
    return cls(fx_spot, domestic_curve=domestic_curve, foreign_curve=
        foreign_curve)
