Updated casting to explicitly make reference casting illegal, and to make casting from a real to an int illegal.