Added automatic type conversion for mocked integer returns