Convert cursor to array when using server events