ビッグエンディアンなら
temp = *(int*)hoge;
リトルエンディアンなら
temp = hoge[0] << 24 | hoge[1] << 16 | hoge[2] << 8 | hoge[3];

文字列ってのは具体的に文字コード何?