using asarray() for conversion