Don't cast incompatible functions.