fixed two build errors (multiple versions of same method required a cast)