Update octrees.cpp

changed to c-style casts