Add new method on interface Boolean to ensure it is not assignable from other types

Fix for #1387