Calling methods on implementations of an interface in array