> I could cast it to take a ref T, but that would be an ABI hack, 

Would that even work? Well. I guess it could. I've never tried casting a "ref" to a "void*"

> any better ideas?

Off the top of my head, apart from `static void* trustedGetAddr(ref T t)@trusted{return cast(void*)&t;}`, I don't see anything clever.