An error when casting

Thank you, that seems to have worked