fixed issue with validation object casts