Useful extensions for Apple's Swift language