Implement some easy conversions.