Fix #24 by allowing cast rules adding only transformation functions.