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.n_neighbors = int(args.n_neighbors)
	args.leaf_size = int(args.leaf_size)
	args.p = int(args.p)

	# metric_params.
	if args.metric_params == "None" or args.metric_params == 'None':
		args.metric_params = None

	args.n_jobs = None if args.n_jobs == 'None' else int(args.n_jobs)
	#  --- ------------- --- #
	return args