operation « cast « Java Data Type Q&A

1. [Casting Operation]    forums.oracle.com

Hi guys. I'd like to know if there is a method to do casting operation with my own classes. For example, I've a Vector, and I wish to obtain a MyClass data with this line Vector vector; MyClass something; something = (MyClass) getVector(vector); Any idea? Thanks. Maurizio Edited by: Maury on Jan 28, 2008 2:12 AM