Cast will work fine in this application.
Doug