a method that checks to see if all elements in an array are a certain type.