PSA: replacement of ind2sub/sub2ind in Julia 0.7+

This might be very simple, but I’m editing my code that works with Julia 0.6 right now, so that I can use it with Julia 0.7+. I still don’t understand one thing about the CartesianIndices() function.

In this example:

If I wanted to assign the values of 2 and 3 from Cartesianindex(2,3) to two different variables, is there a simple way of doing that?