Make it possible to pass vectors directly to adapt().