Index: /applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/util/LayerUtil.java
===================================================================
--- /applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/util/LayerUtil.java	(revision 13725)
+++ /applications/editors/josm/plugins/surveyor/src/at/dallermassl/josm/plugin/surveyor/util/LayerUtil.java	(revision 13726)
@@ -20,16 +20,16 @@
      * @return the layer or <code>null</code>.
      */
+    @SuppressWarnings("unchecked")
     public static <LayerType extends Layer> LayerType findGpsLayer(String layerName, Class<LayerType> layerType) {
-        LayerType result = null;
+        Layer result = null;
         if(Main.map != null && Main.map.mapView != null) {
             for(Layer layer : Main.map.mapView.getAllLayers()) {
                 if(layerName.equals(layer.name) && layerType.isAssignableFrom(layer.getClass())) {
-                    result = (LayerType) layer;
+                    result = layer;
                     break;
                 }
             }
         }
-        return result;
+        return (LayerType) result;
     }
-
 }
