Drill-316 : modify the function def for cast functions.