#NEWLINE# def _assert_valid_value_and_cast( self , value ) : #NEWLINE# #INDENT# if ( type ( value ) != bool ) : #NEWLINE# #INDENT# raise AssertionError ( '{0} is not a valid boolean type' . format ( value ) ) #NEWLINE# #UNINDENT# return value