Add methods for converting long to narrower primitive types which throw if the trunction loses information
(see ceylon/ceylon-compiler#1559).
Replace primitive typecasts with bounds-checked conversion in Util (see ceylon/ceylon-compiler#1559).
Replace primitive typecasts with bounds-checked conversion in primitive array schemas
(see ceylon/ceylon-compiler#1559).
Replace primitive typecasts with bounds-checked conversion in other places
(see ceylon/ceylon-compiler#1559).
Use toInt() a little more, this time in the metamodel. These ones are very unlikely to even throw
(see ceylon/ceylon-compiler#1559).