Setting Bandwidth and Spread Factor with RH-RF95

I have two Adafruit feather modules with LoRa radios talking to each other using the demo programs provided but they are fairly slow. I would like to change the bandwith and spread factor and/or select a different configuration for the modem. Apparently I'm not calling the functions properly, for example when I insert:

rf95.setModemConfig(1);

I get this message:

invalid conversion from 'int' to 'RH_RF95::ModemConfigChoice' [-fpermissive]

I've tried changing the parameter to various data types but I get errors regardless of what I put there.

In the header file this function is defined as:

bool setModemConfiguration(ModemConfigChoice index);

I'm not really an experienced C++ programmer, so I'm not sure what it is looking for here.