Index: trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Functions.java
===================================================================
--- trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Functions.java	(revision 16109)
+++ trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Functions.java	(revision 16110)
@@ -1192,3 +1192,80 @@
         return new LatLon(lat, lon).equalsEpsilon(center(env));
     }
+
+    /**
+     * Parses the string argument as a boolean.
+     * @param value the {@code String} containing the boolean representation to be parsed
+     * @return the boolean represented by the string argument
+     * @see Boolean#parseBoolean
+     * @since 16110
+     */
+    public static boolean to_boolean(String value) { // NO_UCD (unused code)
+        return Boolean.parseBoolean(value);
+    }
+
+    /**
+     * Parses the string argument as a byte.
+     * @param value the {@code String} containing the byte representation to be parsed
+     * @return the byte represented by the string argument
+     * @see Byte#parseByte
+     * @since 16110
+     */
+    public static byte to_byte(String value) { // NO_UCD (unused code)
+        return Byte.parseByte(value);
+    }
+
+    /**
+     * Parses the string argument as a short.
+     * @param value the {@code String} containing the short representation to be parsed
+     * @return the short represented by the string argument
+     * @see Short#parseShort
+     * @since 16110
+     */
+    public static short to_short(String value) { // NO_UCD (unused code)
+        return Short.parseShort(value);
+    }
+
+    /**
+     * Parses the string argument as an int.
+     * @param value the {@code String} containing the int representation to be parsed
+     * @return the int represented by the string argument
+     * @see Integer#parseInt
+     * @since xxx
+     */
+    public static int to_int(String value) { // NO_UCD (unused code)
+        return Integer.parseInt(value);
+    }
+
+    /**
+     * Parses the string argument as a long.
+     * @param value the {@code String} containing the long representation to be parsed
+     * @return the long represented by the string argument
+     * @see Long#parseLong
+     * @since 16110
+     */
+    public static long to_long(String value) { // NO_UCD (unused code)
+        return Long.parseLong(value);
+    }
+
+    /**
+     * Parses the string argument as a float.
+     * @param value the {@code String} containing the float representation to be parsed
+     * @return the float represented by the string argument
+     * @see Float#parseFloat
+     * @since 16110
+     */
+    public static float to_float(String value) { // NO_UCD (unused code)
+        return Float.parseFloat(value);
+    }
+
+    /**
+     * Parses the string argument as a double.
+     * @param value the {@code String} containing the double representation to be parsed
+     * @return the double represented by the string argument
+     * @see Double#parseDouble
+     * @since 16110
+     */
+    public static double to_double(String value) { // NO_UCD (unused code)
+        return Double.parseDouble(value);
+    }
 }
Index: trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/FunctionsTest.java
===================================================================
--- trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/FunctionsTest.java	(revision 16109)
+++ trunk/test/unit/org/openstreetmap/josm/gui/mappaint/mapcss/FunctionsTest.java	(revision 16110)
@@ -3,4 +3,5 @@
 
 import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertTrue;
 import static org.openstreetmap.josm.data.osm.OsmPrimitiveType.NODE;
 
@@ -89,3 +90,17 @@
         assertEquals(0, Functions.osm_timestamp(new EnvBuilder(NODE).build()));
     }
+
+    /**
+     * Unit test of {@code Functions#to_xxx}
+     */
+    @Test
+    public void testParseFunctions() {
+        assertTrue(Functions.to_boolean("true"));
+        assertEquals(1, Functions.to_byte("1"));
+        assertEquals(1, Functions.to_short("1"));
+        assertEquals(1, Functions.to_int("1"));
+        assertEquals(1L, Functions.to_long("1"));
+        assertEquals(1f, Functions.to_float("1"), 1e-10);
+        assertEquals(1d, Functions.to_double("1"), 1e-10);
+    }
 }
