Interpreting part of an array as an object by casting a pointer to an array element
Say you have an array of floats representing raw data, and several types representing 2D shapes that only have floats as members, like this:
Say you have an array of floats representing raw data, and several types representing 2D shapes that only have floats as members, like this: