Remove unnecessary as? T from contains

Each element in a T[] is already a T.