How i can run find(all) with condition array by id

Hi everybody!
I am a newbie. I am using CakePHP 3.x. I want get all data in Users table. This is my code:

$userId = array(1,2,3,4,5,6,7,8,9,10);
$this->Users->find(‘all’, array(
‘conditions’ => array(‘Users.id’ => $userId),
‘fields’ => array(‘name’, ‘email’)
))->toArray();
But it get Error: [InvalidArgumentException] Cannot convert value to integer.

So, I have to do.
Please help me.
Thank you so much.

Add IN inside where condition see below:

$userId = array(1,2,3,4,5,6,7,8,9,10);
$this->Users->find(‘all’, array(
‘conditions’ => array(‘Users.id IN’ => $userId),
‘fields’ => array(‘name’, ‘email’)
))->toArray();

oh great, It work perfect. Thank you so much.