class CastStringToNumericTypeTest def main i = '5' to int # .error. Cannot cast a string to a numeric type. Consider using d = '5.1' to decimal # .error. Cannot cast a string to a numeric type. Consider using f = '5.0' to float # .error. Cannot cast a string to a numeric type. Consider using print i, d, f