Make function types castable.