Once your investment is paid back to your account, you can withdraw your money.
If you are not willing to wait till the borrower pays back the money according to the schedule, you can sell your investments on the Secondary Market and then withdraw the money.