def _cast_types(args):
	"""
	This method performs casting to all types of inputs passed via cmd.
	:param args: argparse.ArgumentParser object.
	:return: argparse.ArgumentParser object.
	"""
	args.x_val = None if args.x_val == 'None' else int(args.x_val)
	args.test_size = float(args.test_size)
	args.dual = (args.dual in ['True', "True", 'true', "true"])
	args.tol = float(args.tol)
	args.C = float(args.C)
	args.fit_intercept = (args.fit_intercept in ['True', "True", 'true', "true"])
	args.intercept_scaling = float(args.intercept_scaling)
	args.class_weight = None if args.class_weight == 'None' else {}
	args.random_state = None if args.random_state == 'None' else int(args.random_state)
	args.max_iter = int(args.max_iter)
	args.verbose = int(args.verbose)
	args.warm_start = (args.warm_start in ['True', "True", 'true', "true"])
	args.n_jobs = None if args.n_jobs == 'None' else int(args.n_jobs)
	args.l1_ratio = None if args.l1_ratio == 'None' else float(args.l1_ratio)
	# --------------- #
	return args