cast users array to object;