Convert phone number after checking type.