Fixed a casting bug in the echoAbility (issue #174).