Play (someone) for (something)

To treat or handle someone as something else.

My supervisor was trying to play me for a fool but I could easily see what he was doing.