<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def to_fp(self, sort, rm=None):
 """ Convert this float to a different sort :param sort: The sort to convert to :param rm: Optional: The rounding mode to use :return: An FP AST """

        if rm is None:
            rm = fp.RM.default()

        return fpToFP(rm, self, sort)