I think this should be `cast = ( cast === true )` to avoid a user mistake blowing up.