avoid type castings by using the correct type for modelIdent