Fix alarm cast