Using non-reserved keywords in C++ and explicit casting of pointers

Proposed fix for [Issue 78](https://github.com/robotmedia/RMStore/issues/78).

I have made sure that the tests still pass, but haven't found the recommended linter for this project. If you point me to the right tool, I'll make sure that the modifications lints.