Add cast boolean to object test