allow an integer to be created from a string or a python integer