copy/paste: try to convert geometries
added test for QgsGeometry::convertToType