Added typecasting from Boost