isRequire boolean cast