If all you need to do is guard against type changes in the code, then use typedefs. For example, your function takes a MyType_t which you can also use as the type for your containers.
Alternatively,...