Make factorint take only integer arguments
Changed int() to as_int()
Merge pull request #1851 from prasoon2211/factorint

Make factorint take only integer arguments