Context.getObject<T>() returns dynamic_cast-ed pointer