Array errors w/hex Uint32/Uint64 etc

I created an array of hex 8-bit numbers. I found I could not use the Integer type. The error was: 

“Type mismatch error: expected Integer() but got Uint64()”

That was fine, I changed the array to Uint64.
Then I made the module external, and brought it into a different Xojo binary project. And in that project, the complaint was:
“Type mismatch error: expected Integer() but got Uint32()”

So now only one of these two projects will compile if using an external module.

Strange but true. But why? Is there are a hidden setting somewhere?

I am using 2018 1.1. Please don’t tell me to upgrade. Code below

Thx
Tom

Dim myArray(NUM_CHARS - 1) As Uint32 = Array(&h0,&h6,&h22,&h0,&h0,&h0,&h0,&h2,_
&h39,&hF,&h0,&h0,&h10,&h40,&h0,&h0,&h3F,&h6,&h5B,&h4F,&h66,&h6D,_
&h7D,&h7,&h7F,&h6F,&h0,&h0,&h0,&h41,&h0,&h53,&h0,&h77,&h7F,&h39,_
&h3F,&h79,&h71,&h3D,&h76,&h30,&h1E,&h0,&h38,&h0,&h54,&h3F,&h73,&h67,_
&h50,&h6D,&h78,&h3E,&h0,&h0,&h0,&h6E,&h5B,&h39,&h0,&hF,&h0,&h8,&h0,&h77,_
&h7C,&h58,&h5E,&h79,&h71,&h6F,&h74,&h10,&hE,&h0,&h38,&h0,&hD4,&h5C,&h73,_
&h67,&h50,&h6D,&h78,&h1C,&h0,&h0,&h0,&h6E,&h5B,&h39,&h30,&hF,&h52,_
&h0,&h0,&h0,&h0,&h0,&h0,&h0,&h0,&h0,&h0,&h0,&h0)

The Array function will return a best-guess array. If you want to be sure, create your own function to return an array of the correct type, like so:

Function UInt8Array (ParamArray arr() As UInt8) As UInt8()
  return arr
End Function

dim myArray() as UInt8 = UInt8Array(&h0, &h6, ... )

Edit to include parens in the return parameter.