title: How to convert MultiSelect values from Active Choice Parameter in Jenkins into an array or list?
body: <p>I have parameterized job with 'list' MultiSelect parameter in Jenkins:
  <a href="https://i.stack.imgur.com/YA9k4.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YA9k4.jpg" alt="enter image description here"></a></p>
  
  <p>I want to build this job only with selected values:
  <a href="https://i.stack.imgur.com/iMywP.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iMywP.jpg" alt="enter image description here"></a></p>
  
  <p>And for this purpose, I want to pass this selected values to pipeline script in this job and convert them into an array or list. </p>
  
  <p>The following code doesn't work properly:
  <a href="https://i.stack.imgur.com/FlX7E.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FlX7E.jpg" alt="enter image description here"></a></p>
  
  <p>Please, help me to write the proper code in groovy to convert selected values to array or list. </p>
  
  <p>Thanks,
  Anastasiia</p>