commit casting