How to check if an actor is from a certain class?

Thanks for the response, “Class Is Child Of” is a very useful function. I’ve put it into practise and it works as expected.