Better use of #define
I don't know why I thought this cast was necessary