parse param as bool if the default is a bool, or if cast as bool