Returns the specified value as float if possible.

def _cast_float(self, value):
        """Returns the specified value as float if possible."""
        try:
            return float(value)
        except ValueError:
            msg.err("Cannot convert {} to float for line {}.".format(value, self.identifier))
            exit(1)