``tryCastTo`` seems a better name (because no exception is thrown on failure).