casting using string