finesse.parameter.Parameter.datatype_cast

Parameter.datatype_cast(self, value, ignore_failure=False)

Casts a value into the datatype of this parameter.

If ignore_failure is True then if this value cannot be cast it is just returned.