Automatic type conversion in function calls