LoanType to enum