title: Cannot implicitly convert type 'System.Collections.ArrayList' to 'BookReservationRQReservation[]
body: <p>I have an ArrayList i want to add items inside it then assign it with <code>bookingrquest.Reservations</code> i tried several times but i did not get solution for it, how to convert ArrayList to  BookReservationRQReservation[]</p>
  
  <pre><code> BookReservationRQ bookingrquest = new BookReservationRQ();
    ArrayList reservation = new ArrayList();
  
    int count = 0;
  
    foreach (var item in reservation_details.selectedrooms)
    {
        reservation.Add(item.IDHotel);
        count++;
    }
  
  
    bookingrquest.Reservations = reservation;// i have this error in this line
  
  
     public BookReservationRQReservation[] Reservations {
       get {
          return this.reservationsField;
       }
       set {
           this.reservationsField = value;
      }
      }
  </code></pre>