How can i use a class of actors in my "actors to ignore" on my line trace?

Use the Get All Actors of Class node: