trevor elias einhorn (born november 3, 1998) is an american actor. in television, he is known for playing josh on the syfy fantasy series "the magicians" and frederick crane on the american sitcom frasier. he also portrayed the role of joey thomas in the 1998 trey parker and matt stone film "baseketball".