Numeric cast fixes; doc updates.