Updated CMakeLists.txt, made cast operators explicit.