fd2funData function

Convert an fd object to funData