Soft Variable Reference Feedback

I just learned about soft references and tried them out. The script in the image is getting information from 2 soft references and passing them into a function. I want to know if there is a better way to do this, because this is a ton of nodes just to get 2 variables.

I use them little but I don’t think there is a way to save “isValid → async → cast”.