fixed cast away of const qualifier in logObject.hpp