typescript cast to boolean code example Example: angular convert boolean to string var myBool: bool = true; var myString: string = String(myBool);