it’s not a cast. You could make a new function that is set as pure, and call this function from it. I’m assuming that this function doesn’t actually have any side effects.
its weird because things like “get actor location” are pure, but stuff like this isn’t?
I don’t see anything obvious as to why it couldn’t be marked pure. Other similar functions are.