ArrayAccess is the interface to provide accessing objects as arrays.