rails/rails — pull request #13100 by akshay-vishnoi (2013-11-29 11:21:51+00:00)
Title: #type_cast - improve performance & readability

1. Number of Comparison of variable `value` when:
Old Method New Method
value == true 2 1
value == false 3 2
value not boolean 2 2

2. Avoiding short-circuiting