Why is there a cast to an Array here? requirements is already an array, correct?