module AmazingPrint::OpenStruct

def cast_with_ostruct(object, type)

def cast_with_ostruct(object, type)
  cast = cast_without_ostruct(object, type)
  cast = :open_struct_instance if defined?(::OpenStruct) && object.is_a?(::OpenStruct)
  cast
end