I had tried a static_cast, but it didn't work. I had just forgotten to include costumeemi.h