Changed C style casting to C++ style.