Drill-316: explict cast - add test case for nested cast functions.
Drill-316: minor change to function template for explicit cast.