Update typecast.cpp