Common: added explicit type-cast for pointers