void foo(Object x) {
if (typeid(x) == typeid(Object[])) {
auto a = cast(Object[]) x;
}
}I get a compilation error:onlineapp.d(3): Error: cannot cast expression x of type object.Object to Object[]
What's the way to achieve the cast, which should be safe given the typeid check?
Thanks and regards, Vinay Sajip
