Convert input paramter to bool type