Use TrueClass and FalseClass instead of Boolean when converting to the native type. [#77432872]