Converted results to array of objects