* @param val The value to assign and typecheck for the actuator
* @throws CarusoException
*/
public final void setValue(Object val) throws CarusoException {
if (!this.type.isAssignableFrom(val.getClass())) {
throw new CarusoException("Attempted to set actuator to type "
+ val.getClass().toString()
+ " instead of " + this.type.toString());
}
this.lastValue = val;
this.assignValue(val);