Replace warn with assert to match the others assertions

Removed boolean coercion
Merge pull request #1168 from marcioj/normalize-assertions

Replace warn with assert to match the others assertions