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

Is there any way to more efficiently do this for hundreds of types of actors?