I am using a library that has a function that takes an array of structs. That struct and function has the following layout:
struct TwoInt32s { int32_t a;
It's safest to not cast, but convert -- i.e., create a new array and fill it with the values found in the struct, then kill the struct.