use shorter lang.toArray fn