diff --git a/lib/galaxy/tools/wrappers.py b/lib/galaxy/tools/wrappers.py
index 1a483b66e74..9282f446935 100644
--- a/lib/galaxy/tools/wrappers.py
+++ b/lib/galaxy/tools/wrappers.py
@@ -98,6 +98,12 @@ class InputValueWrapper( ToolParameterValueWrapper ):
def __getattr__( self, key ):
return getattr( self.value, key )
+ def __int__(self):
+ return int(str(self))
+
+ def __float__(self):
+ return float(str(self))
+
class SelectToolParameterWrapper( ToolParameterValueWrapper ):
"""
diff --git a/test/functional/tools/cheetah_casting.xml b/test/functional/tools/cheetah_casting.xml
new file mode 100644
index 00000000000..d12bb6569e8
--- /dev/null
+++ b/test/functional/tools/cheetah_casting.xml
@@ -0,0 +1,27 @@
+
+
+ #set $int_val_inc = int($inttest) + 1
+ #set $float_val_inc = float($floattest) + 1
+ echo $int_val_inc >> $out_file1;
+ echo $float_val_inc >> $out_file1;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/test/functional/tools/samples_tool_conf.xml b/test/functional/tools/samples_tool_conf.xml
index 22fbd8290b7..bd437eb7100 100644
--- a/test/functional/tools/samples_tool_conf.xml
+++ b/test/functional/tools/samples_tool_conf.xml
@@ -52,6 +52,8 @@
+
+