introduce and use geodata_cast
Previously, one had to know the relation between GeoNode's nodeType() and static_cast<> for a cast to be valid. With geodata_cast<>, this knowledge isn't required any more. In addition, it makes the code more concise by requiring just one line instead of two.