Cast powershell credential object to securestring

I have a Powershell script that has an output of the PS Credential object type. I’m using the Invoke Powershell activity to run my script but now I need to convert the output to string/securestring (username and password). Is there a way to do this in UIPath? Thank you

It will give you the collection of objects right @rachelwalker907?

Simply loop through the output and assign them to the variables . or just as list, use index to retrieve their values