AsFunction added to simplify functional conversions
Merge pull request #121 from kfgodel/119-as_function_types

AsFunction added to simplify functional conversions