Use array notation, and error on invalid data type