util.trace on brush ents?

Possible?

If so, then how do you detect if the trace hits it?

By brush ents I mean custom entities with type brush.

offtopic:
I want to use this to make a boundary for a custom function.

I got it, I made a func_wall and made keyvalues instead of making my own class.