Added __int__ and __float__ methods to num class, fixes #60