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;
}

Reply via email to