Right click on the variable being output by the cast and click store as variable. This will add the variable automatically to the list of existing variables in your blueprint. You can use it any time you like. If you are not sure it is already set, you could use an IsValid node on it before getting its location.