groovy check string in array with non-string code example Example: array in groovy def birdArr = ["Parrot", "Cockatiel", "Pigeon"] as String[]