Add errors for attributes & cast