public static Object cast(String obj, Class clazz)
	{
		if (clazz.equals(String.class))
		{
			return obj;
		}
		else if (clazz.equals(boolean.class))
		{
			return Boolean.parseBoolean(obj.toString());
		}
		else if (clazz.equals(Boolean.class))
		{
			return (Boolean) Boolean.parseBoolean(obj.toString());
		}
		else if (clazz.equals(Double.class))
		{
			return (Double) Double.parseDouble(obj.toString());
		}
        else if(clazz.equals(Integer.class))
        {
            return Integer.parseInt(obj);
        }
		return obj;
	}