rafactoring casting and method alising for OpenStruct