Fix compiler warning

Cast array to const array. Syntax is awkward but correct