Add support for auto function conversion

issue (#28)