ok nevermind, figured it out, just in case anyone runs into the same issue, the documentation is incorrect, you cant transform a credit memo into a cashrefund
however, you CAN create a customer refund, and initilize it to a credit memo with the following code:
var stRefund = record.create({ type: record.Type.CUSTOMER_REFUND, isDynamic: true, defaultValues: {entity: data.stCustomerId, cred:data.stCreditMemoId}});
this will basically apply it on creation