src/authoring/forms/AbstractComponentForm.java
protected Object cast(Class<?> desiredType, String text) {
		Object reflectValue;
		if (desiredType.equals(double.class)) {
			reflectValue = Double.parseDouble(text);
		}
		else {
			reflectValue = text;
		}
		return reflectValue;
	}
/**
	 * Casts the {@code String} in the {@code TextField} to the appropriate class based upon the types
	 * declared in the constructor.
	 * @param desiredType the type that the {@code String} should be cast to
	 * @param text the text to be cast
	 * @return an Object representing the casted class
	 */
Casts the  String in the  TextField to the appropriate class based upon the types
declared in the constructor.
@param desiredType the type that the  String should be cast to
@param text the text to be cast
@return an Object representing the casted class
Casts the String in the TextField to the appropriate class based upon the types declared in the constructor . @param desiredType the type that the String should be cast to @param text the text to be cast @return an Object representing the casted class
protected Object cast(Class<?> desiredType, String text) {
		Object reflectValue;
		if (desiredType.equals(double.class)) {
			reflectValue = Double.parseDouble(text);
		}
		else {
			reflectValue = text;
		}
		return reflectValue;
	}
protected Object cast ( Class < ? > desiredType , String text ) { Object reflectValue ; if ( desiredType . equals ( double . class ) ) { reflectValue = Double . parseDouble ( text ) ; } else { reflectValue = text ; } return reflectValue ; }
Casts the {@code String} in the {@code TextField} to the appropriate class based upon the types
 declared in the constructor.
Casts the { @code String } in the { @code TextField } to the appropriate class based upon the types declared in the constructor .