remove a branch and uses a casting of said boolean instead
This branching can be removed by noting that the boolean can be casted to the appropriate enum.
This branching can be removed by noting that the boolean can be casted to the appropriate enum.