Cast as fn pointer to fix build error
Merge pull request #167 from oakes/fn-pointer

Cast as fn pointer to fix build error