refactoring convertToArray
LiteMQ.Client refactor.