Fixed the casting of a parameter on the command line, not sure why this didn't work originally.