Some cast cleanup; added comment on magic number; changes enum name to NUM_SIZECLASSES.