* added type cast macro to avoid gcc warning