#include <iostream>
using namespace std;

int main() {
  int a;
  float b = 4.543;
  char c = 'Z';

  // if you use a=b, you'll get a warning.
  // typecast with int() and you'll get no errors.
  //a = b;
  a = int(b);
  cout << "The value of a is now: " << a << "\n";

  // notice if you use int() for a char variable, you'll get its a
  cout << "The ACSCII value of the char " << c << " is " << int(c) << "\n";

}
