Support writing needed extension types

What about `data-structure.getClass().isArray()`? Would that work?