Andrej Mitrovic Tue, 15 Mar 2011 17:36:24 -0700
I've spotted this in QtD's codebase, dunno if this works:
T static_cast(T, U)(U obj) { return cast(T)cast(void*)obj; }