Add itof and ftoi functions for frames

Added in-place casting from one type to another.  Internally the special scale
is not used for faster operations, so the representations are very similar, but
float allows for greater accuracy at lower values, and also higher ints, but at
a significant loss of speed.