Issue #34 : add support for cast functions