How to convert CartesianIndex{N} values to Int64

Just extract it with normal indexing?

julia> CartesianIndex(1,20)[2]
20
6 Likes