Convert to a trait implementation on int