Having a delegate d, I can use d.ptr to get a void* pointer to the environment used to construct the delegate. How can I determine from that pointer whether that is a class object?