The ArrayTyleStyle check reports false positives on casts when using C-style array declarations. The fix is fairly easy -- the code already ignores method return values. It just needs to ignore casts too.
no test case, no cofiguration - can not reproduse,
if it is stil a problem please report to https://github.com/checkstyle/checkstyle/issues, but please attach file and configuration to let us reproduce the problem