firstcommit casting