add toPlainarray for Blitz template