Don't use ugly casts to access array.