def checkStandardType(self, param, type=None):
        # check if a int is really a int (same for str, float, long and complex)
        type_option = self.type_value
        if type is not None:
            type_option = type
        try:
            return self.__safe_cast__(param, eval(type_option))
        except __HOLE__:
            self.parser.usage.error("ERROR: Option "+self.name+" must be "+type_option)
dataset/ETHPy150Open neuropoly/spinalcordtoolbox/scripts/msct_parser.py/Option.checkStandardType