Rewrite intValue() and longValue()