orly/rt: Add specializations of cast_as to/from Rt::TOpt's containing different types (real -> int?).

Fixes #228