Added cast methods
Implemented cast methods