Bugfix: Convert numbers to Int in extendedterminfo (#51195)
Before, in the extendedterminfo function in terminfo.jl, if the numbers
array was nonempty, the function would fail as a `UInt32` cannot be
implicitly converted to the output `Int` type. Do this conversion
explicitly.
Closes #51190