gc: Use simple cast instead of union to silence compiler