class TypeConverter {

	public Object convert(Object obj) {
		Object newObject = null;

		switch (conversion) {
		case NO_CONVERSION:
			newObject = obj;
			break;
		case DOUBLE_TO_FLOAT:
			newObject = ((Double) obj).floatValue();
			break;
		case INT_TO_SHORT:
			newObject = ((Integer) obj).shortValue();
			break;
		case INT_TO_BYTE:
			newObject = ((Integer) obj).byteValue();
			break;
		case STRING_TO_CHAR:
			newObject = ((CharSequence) obj).charAt(0);
			break;
		case NUM_TO_LONG:
			newObject = Long.parseLong(obj.toString());
			break;
		default:
			newObject = null;
		}

		return newObject;
	}

	public  TypeConverter();
	public  TypeConverter(int conversion);

}