Adding conversion for function to delegates