reorder conversion functions for GCC 4.7.1