updated casts in starch API