Add a general node searching function for any geometric types

as titled
For the already known type `static_cast` is sufficient.
If using `dynamic_cast` I'd throw an error, because the the expected point-type turned out not to be a point.
One could use the `dynamic_cast` instead of enum checks, but this boils down to the same binary code.