Using Simulink    

Enabling Strict Boolean Type Checking

By default, Simulink detects but does not signal an error when it detects that double signals are connected to blocks that prefer boolean input. This ensures compatibility with models created by earlier versions of Simulink that support only double data type. You can enable strict boolean type checking by unchecking the Boolean logic signals option on the Advanced panel of the Simulation Parameters dialog box (see The Advanced Pane).


 Data Typing Rules Typecasting Signals