casting a function call