Convenience methods for converting ruby fixnums to various formats