array cast is too early