# Re: changing the type of a variable

**URL:** <https://www.ruby-forum.com/t/re-changing-the-type-of-a-variable/94678>\
**Category:** Ruby\
**Created:** [May 10, 2006, 9:31pm UTC](https://www.ruby-forum.com/t/re-changing-the-type-of-a-variable/94678 "2006-05-10T21:31:27Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gennady\_B](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/c57346/32.png) [@Gennady\_B](https://www.ruby-forum.com/u/Gennady_B)\
**Post date:** [May 10, 2006, 9:31pm UTC](https://www.ruby-forum.com/t/re-changing-the-type-of-a-variable/94678/1 "2006-05-10T21:31:27Z")

</div>

That’s it. If it still complains, make sure that you changed it in the  
right/all place(s). Puts some messages around the code to make sure that  
the problem is really in between those messages. You can also use  
@items.inspect in those messages to see what type @items really is.  
Whatever you output with puts should appear in the terminal where you  
ran your server from.

Gennady.
