can now convert from an integer correctly