Implement Type casting using the Virtus gem.